Table of Contents

Class TypedProperty<TType, TValue>

Namespace
Root
Assembly
SPZGameAssembly.dll
public class TypedProperty<TType, TValue>

Type Parameters

TType
TValue
Inheritance
object
TypedProperty<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

propertyName string
bindingFlags BindingFlags
defaultValue TValue
errorMessage string

Methods

GetValue(TType)

public TValue GetValue(TType instance)

Parameters

instance TType

Returns

TValue

SetValue(TType, TValue)

public void SetValue(TType instance, TValue value)

Parameters

instance TType
value TValue