PropertyHierarchyGetValueT(PropertyKeyT, T) Method |
Gets a property value.
Namespace: Altaxo.Main.PropertiesAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public T GetValue<T>(
PropertyKey<T> p,
T defaultValue
)
Parameters
- p PropertyKeyT
- The property key.
- defaultValue T
- The default value. This value is returned if the property hierarchy does not contain the property value.
Type Parameters
- T
- Type of the property value.
Return Value
TThe property value if found in this hierarchy, or the provided default value.
Implements
IReadOnlyPropertyBagGetValueT(PropertyKeyT, T)See Also