C# Class AWSSDK_DotNet.CommonTest.Utils.ReflectionHelpers

Show file Open project: aws/aws-sdk-net

Public Methods

Method Description
Invoke ( Type type, string memberName ) : object

Invoke a non-public static member on the type. Looks for a method, property, or field (in that order) on the type and calls it with the parameters provided. For properties and fields 0 parameters means get, and 1 parameter means set. For sets and void method calls, returns null.

Invoke ( object obj, string memberName ) : object

Invoke a non-public instance member on the object. Looks for a method, property, or field (in that order) on the object and calls it with the parameters provided. For properties and fields 0 parameters means get, and 1 parameter means set. For sets and void method calls, returns null.

Private Methods

Method Description
InvokeHelper ( Type type, object target, string memberName, object parameters ) : object

Method Details

Invoke() public static method

Invoke a non-public static member on the type. Looks for a method, property, or field (in that order) on the type and calls it with the parameters provided. For properties and fields 0 parameters means get, and 1 parameter means set. For sets and void method calls, returns null.
public static Invoke ( Type type, string memberName ) : object
type System.Type
memberName string
return object

Invoke() public static method

Invoke a non-public instance member on the object. Looks for a method, property, or field (in that order) on the object and calls it with the parameters provided. For properties and fields 0 parameters means get, and 1 parameter means set. For sets and void method calls, returns null.
public static Invoke ( object obj, string memberName ) : object
obj object
memberName string
return object