|
TNet 3
3.0.8
|
Convenient wrapper for a getter and setter of a field or property on the chosen object. More...
Public Member Functions | |
| object | GetValue (object target) |
| Get the field or property's value. More... | |
| T | GetValue< T > (object target) |
| Get the field or property's value. More... | |
| void | SetValue (object target, object value, GameObject go=null) |
| Set the field or property's value. More... | |
| bool | HasAttribute< T > () |
| Whether the specified attribute is present. More... | |
| T | GetAttribute< T > () |
| Retrieve the attribute of specified type on the field or property. More... | |
| T[] | GetAttributes< T > () |
| Retrieve the attributes of specified type on the field or property. More... | |
Static Public Member Functions | |
| static FieldOrProperty | Create (Type type, string name) |
| Create a new field or property reference of specified name. More... | |
| static FieldOrProperty | Create (Type type, FieldInfo field) |
| Create a new field or property reference of specified name. More... | |
| static FieldOrProperty | Create (Type type, PropertyInfo property) |
| Create a new field or property reference of specified name. More... | |
Public Attributes | |
| FieldInfo | field |
| PropertyInfo | property |
Properties | |
| string | name [get] |
| Field or property's name. More... | |
| bool | canWrite [get] |
| Whether this option is writable or read-only. More... | |
| Type | type [get] |
| Field or property time. More... | |
Convenient wrapper for a getter and setter of a field or property on the chosen object.
|
static |
Create a new field or property reference of specified name.
|
static |
Create a new field or property reference of specified name.
|
static |
Create a new field or property reference of specified name.
| T TNet.FieldOrProperty.GetAttribute< T > | ( | ) |
Retrieve the attribute of specified type on the field or property.
| T | : | Attribute |
| T [] TNet.FieldOrProperty.GetAttributes< T > | ( | ) |
Retrieve the attributes of specified type on the field or property.
| T | : | Attribute |
| object TNet.FieldOrProperty.GetValue | ( | object | target | ) |
Get the field or property's value.
| T TNet.FieldOrProperty.GetValue< T > | ( | object | target | ) |
Get the field or property's value.
| bool TNet.FieldOrProperty.HasAttribute< T > | ( | ) |
Whether the specified attribute is present.
| T | : | Attribute |
| void TNet.FieldOrProperty.SetValue | ( | object | target, |
| object | value, | ||
| GameObject | go = null |
||
| ) |
Set the field or property's value.
| FieldInfo TNet.FieldOrProperty.field |
| PropertyInfo TNet.FieldOrProperty.property |
|
get |
Whether this option is writable or read-only.
|
get |
Field or property's name.
|
get |
Field or property time.