BaseJsonVariableInfo Class
Extends IJsonVariableInfo
Abstract base class for property/field access
Stored PropertyInfo/FieldInfo
BaseJsonVariableInfo ( T info )
Constructor that takes in FieldInfo/PropertyInfo
virtual string GetName ( )
Obtains name of property/field
virtual bool IsDefined< TAttribute > ( )
Whether a specified attribute is defined on this property/field
virtual IEnumerable< TAttribute > GetCustomAttributes< TAttribute > ( )
Obtains all instances of a specified attribute on this property/field
Whether or not the get method exists
abstract bool IsGetPublic ( )
Whether or not the get method can be used for this property/field
Whether or not the setter exists
abstract bool IsSetPublic ( )
Whether or not the set method can be used for this property/field
virtual string [] GetSerializeNames ( )
The desired variable name when serializing/deserializing using custom attributes & base name.
virtual bool GetShouldSerialize ( )
virtual bool GetShouldDeserialize ( )
Only deserialize if can get & set
abstract Type GetVariableType ( )
abstract object GetValue ( object obj )
abstract void SetValue ( object obj,
object newValue )