C# Class Test.Reflect

Utility methods for accessing internal APIs via reflection.
Afficher le fichier Open project: peteroupc/CBOR

Méthodes publiques

Méthode 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

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

Method Details

Construct() public static méthode

public static Construct ( string type ) : object
type string
Résultat object

GetField() public static méthode

public static GetField ( object obj, string name ) : object
obj object
name string
Résultat object

GetFieldStatic() public static méthode

public static GetFieldStatic ( string type, string name ) : object
type string
name string
Résultat object

GetMethod() public static méthode

public static GetMethod ( object obj, string name ) : object
obj object
name string
Résultat object

GetProperty() public static méthode

public static GetProperty ( object obj, string name ) : object
obj object
name string
Résultat object

GetPropertyStatic() public static méthode

public static GetPropertyStatic ( string type, string name ) : object
type string
name string
Résultat object

Invoke() public static méthode

public static Invoke ( object obj, string name ) : object
obj object
name string
Résultat object

InvokeMethod() public static méthode

public static InvokeMethod ( object obj, object method ) : object
obj object
method object
Résultat object

InvokeStatic() public static méthode

public static InvokeStatic ( string type, string name ) : object
type string
name string
Résultat object