TNet 3  3.0.8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros
TNet.FieldOrPropertyExtensions Class Reference

Convenience extension methods for the TNet.Property. More...

Static Public Member Functions

static FieldOrProperty GetFieldOrProperty (this object obj, string name)
 Get the specified field or property. The result is cached in a lookup table. More...
 
static FieldOrProperty GetFieldOrProperty (this Type type, string name)
 Get the specified field or property. The result is cached in a lookup table. More...
 
static object GetFieldOrPropertyValue (this object obj, string name)
 Get the value of a field or property of an object. More...
 
static object GetFieldOrPropertyValue (this object obj, string name, object defaultVal)
 Get the value of a field or property of an object. More...
 
static T GetFieldOrPropertyValue< T > (this object obj, string name)
 Get the specified field or property of an object, cast into the chosen type using TNet's serialization. More...
 
static T GetFieldOrPropertyValue< T > (this object obj, string name, T defaultVal)
 Get the specified field or property of an object, cast into the chosen type using TNet's serialization. More...
 
static void SetFieldOrPropertyValue (this object obj, string name, object val, GameObject go=null)
 Set the value of a field or property of an object. More...
 

Detailed Description

Convenience extension methods for the TNet.Property.

Member Function Documentation

static FieldOrProperty TNet.FieldOrPropertyExtensions.GetFieldOrProperty ( this object  obj,
string  name 
)
static

Get the specified field or property. The result is cached in a lookup table.

static FieldOrProperty TNet.FieldOrPropertyExtensions.GetFieldOrProperty ( this Type  type,
string  name 
)
static

Get the specified field or property. The result is cached in a lookup table.

static object TNet.FieldOrPropertyExtensions.GetFieldOrPropertyValue ( this object  obj,
string  name 
)
static

Get the value of a field or property of an object.

static object TNet.FieldOrPropertyExtensions.GetFieldOrPropertyValue ( this object  obj,
string  name,
object  defaultVal 
)
static

Get the value of a field or property of an object.

static T TNet.FieldOrPropertyExtensions.GetFieldOrPropertyValue< T > ( this object  obj,
string  name 
)
static

Get the specified field or property of an object, cast into the chosen type using TNet's serialization.

static T TNet.FieldOrPropertyExtensions.GetFieldOrPropertyValue< T > ( this object  obj,
string  name,
defaultVal 
)
static

Get the specified field or property of an object, cast into the chosen type using TNet's serialization.

static void TNet.FieldOrPropertyExtensions.SetFieldOrPropertyValue ( this object  obj,
string  name,
object  val,
GameObject  go = null 
)
static

Set the value of a field or property of an object.


The documentation for this class was generated from the following file: