Class DefaultValueMetadata<T>
public abstract class DefaultValueMetadata<T> : DefaultValueMetadata
Type Parameters
T
- Inheritance
-
DefaultValueMetadata<T>
- Derived
- Inherited Members
Methods
GetDefaultValue(ref PropertyContainer)
Gets the default value of an external property, and specify if this default value should be kept. It could be usefull with properties with default values depending of its container, especially if they are long to generate. An example would be collision data, which should be generated only once.
public override object GetDefaultValue(ref PropertyContainer obj)
Parameters
obj
PropertyContainerThe property container.
Returns
- object
The default value.
GetDefaultValueT(ref PropertyContainer)
Gets the default value of an external property, and specify if this default value should be kept. It could be usefull with properties with default values depending of its container, especially if they are long to generate. An example would be collision data, which should be generated only once.
public abstract T GetDefaultValueT(ref PropertyContainer obj)
Parameters
obj
PropertyContainerThe property container.
Returns
- T
The default value.