IReadOnlyPropertyBagGetValueT(PropertyKeyT, T) Method |
Gets the value of a property. If the property is not found in the bag, the provided default value is returned.
Namespace: Altaxo.Main.PropertiesAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax T GetValue<T>(
PropertyKey<T> p,
T defaultValue
)
Parameters
- p PropertyKeyT
- The property key.
- defaultValue T
- Default value that is returned if no property value is found in the bag.
Type Parameters
- T
- Type of the property value.
Return Value
TThe property.
See Also