PropertyBagGetValueT(PropertyKeyT, T) Method |
Gets the value for the specified property key.
Namespace: Altaxo.Main.PropertiesAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic virtual T GetValue<T>(
PropertyKey<T> p,
T defaultValue
)
Parameters
- p PropertyKeyT
- The property key.
- defaultValue T
- The default value returned when the key is not found.
Type Parameters
- T
- The value type.
Return Value
TThe stored value, or
defaultValue if the key is not present.
Implements
IReadOnlyPropertyBagGetValueT(PropertyKeyT, T)
See Also