API reference
API reference
Select your platform
No SDKs available
No versions available

BaseJsonVariableInfo Class

Abstract base class for property/field access
Meta::WitAi::Json::BaseJsonVariableInfo extends Meta.WitAi.Json.IJsonVariableInfo.

Overview

Object Data

T
_info[Get]
Stored PropertyInfo/FieldInfo

Object Data

Constructor that takes in FieldInfo/PropertyInfo
string
GetName ( )
Obtains name of property/field
bool
Whether a specified attribute is defined on this property/field
IEnumerable< TAttribute >
Obtains all instances of a specified attribute on this property/field
abstract bool
HasGet ( )
Whether or not the get method exists
abstract bool
Whether or not the get method can be used for this property/field
abstract bool
HasSet ( )
Whether or not the setter exists
abstract bool
Whether or not the set method can be used for this property/field

Public Member Functions

string []
The desired variable name when serializing/deserializing using custom attributes & base name.
bool
Can serialize if getter is public, there is a JsonPropertyAttribute & no JsonIgnore attribute
bool
Only deserialize if can get & set
abstract Type
abstract object
GetValue
( object obj )
abstract void
SetValue
( object obj,
object newValue )

Details

Object Data

T Meta.WitAi.Json.BaseJsonVariableInfo< T >._info
Stored PropertyInfo/FieldInfo

Object Data

Meta.WitAi.Json.BaseJsonVariableInfo< T >.BaseJsonVariableInfo
( T info )
Constructor that takes in FieldInfo/PropertyInfo
virtual string Meta.WitAi.Json.BaseJsonVariableInfo< T >.GetName ( )
Obtains name of property/field
virtual bool Meta.WitAi.Json.BaseJsonVariableInfo< T >.IsDefined< TAttribute > ( )
Whether a specified attribute is defined on this property/field
virtual IEnumerable<TAttribute> Meta.WitAi.Json.BaseJsonVariableInfo< T >.GetCustomAttributes< TAttribute > ( )
Obtains all instances of a specified attribute on this property/field
abstract bool Meta.WitAi.Json.BaseJsonVariableInfo< T >.HasGet ( )
Whether or not the get method exists
abstract bool Meta.WitAi.Json.BaseJsonVariableInfo< T >.IsGetPublic ( )
Whether or not the get method can be used for this property/field
abstract bool Meta.WitAi.Json.BaseJsonVariableInfo< T >.HasSet ( )
Whether or not the setter exists
abstract bool Meta.WitAi.Json.BaseJsonVariableInfo< T >.IsSetPublic ( )
Whether or not the set method can be used for this property/field

Member Functions

virtual string [] Meta.WitAi.Json.BaseJsonVariableInfo< T >.GetSerializeNames ( )
The desired variable name when serializing/deserializing using custom attributes & base name.
virtual bool Meta.WitAi.Json.BaseJsonVariableInfo< T >.GetShouldSerialize ( )
Can serialize if getter is public, there is a JsonPropertyAttribute & no JsonIgnore attribute
virtual bool Meta.WitAi.Json.BaseJsonVariableInfo< T >.GetShouldDeserialize ( )
Only deserialize if can get & set
abstract Type Meta.WitAi.Json.BaseJsonVariableInfo< T >.GetVariableType ( )
No description available.
abstract object Meta.WitAi.Json.BaseJsonVariableInfo< T >.GetValue
( object obj )
No description available.
abstract void Meta.WitAi.Json.BaseJsonVariableInfo< T >.SetValue
( object obj,
object newValue )
No description available.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon