Class TypedProperty<TType, TValue>
- Namespace
- Root
- Assembly
- SPZGameAssembly.dll
public class TypedProperty<TType, TValue>
Type Parameters
TTypeTValue
- Inheritance
-
objectTypedProperty<TType, TValue>
- Extension Methods
Constructors
TypedProperty(string, BindingFlags, TValue, string)
public TypedProperty(string propertyName, BindingFlags bindingFlags = BindingFlags.Instance | BindingFlags.NonPublic, TValue defaultValue = default, string errorMessage = "")
Parameters
propertyNamestringbindingFlagsBindingFlagsdefaultValueTValueerrorMessagestring
Methods
GetValue(TType)
public TValue GetValue(TType instance)
Parameters
instanceTType
Returns
- TValue
SetValue(TType, TValue)
public void SetValue(TType instance, TValue value)
Parameters
instanceTTypevalueTValue