C# Class Test.Reflect

Utility methods for accessing internal APIs via reflection.
Show file Open project: peteroupc/CBOR

Public Methods

Method Description
Construct ( string type ) : object
GetField ( object obj, string name ) : object
GetFieldStatic ( string type, string name ) : object
GetMethod ( object obj, string name ) : object
GetProperty ( object obj, string name ) : object
GetPropertyStatic ( string type, string name ) : object
Invoke ( object obj, string name ) : object
InvokeMethod ( object obj, object method ) : object
InvokeStatic ( string type, string name ) : object

Private Methods

Method Description
FindType ( string type ) : Type
GetMethodExtended ( IReflect type, string name, bool staticMethod, int parameterCount ) : object

Method Details

Construct() public static method

public static Construct ( string type ) : object
type string
return object

GetField() public static method

public static GetField ( object obj, string name ) : object
obj object
name string
return object

GetFieldStatic() public static method

public static GetFieldStatic ( string type, string name ) : object
type string
name string
return object

GetMethod() public static method

public static GetMethod ( object obj, string name ) : object
obj object
name string
return object

GetProperty() public static method

public static GetProperty ( object obj, string name ) : object
obj object
name string
return object

GetPropertyStatic() public static method

public static GetPropertyStatic ( string type, string name ) : object
type string
name string
return object

Invoke() public static method

public static Invoke ( object obj, string name ) : object
obj object
name string
return object

InvokeMethod() public static method

public static InvokeMethod ( object obj, object method ) : object
obj object
method object
return object

InvokeStatic() public static method

public static InvokeStatic ( string type, string name ) : object
type string
name string
return object