Property | Type | Description | |
---|---|---|---|
methodAttributes | MethodAttributes |
Property | Type | Description | |
---|---|---|---|
GetParametersNoCopy | System.Reflection.ParameterInfo[] |
Method | Description | |
---|---|---|
GetCurrentMethod ( ) : |
Returns a MethodBase object representing the currently executing method.
|
|
GetGenericArguments ( ) : System.Type[] |
Returns an array of T:System.Type objects that represent the type arguments of a generic method or the type parameters of a generic method definition.
|
|
GetMethodFromHandle ( |
Gets method information by using the method's internal metadata representation (handle).
|
|
GetMethodFromHandle ( |
Gets a T:System.Reflection.MethodBase object for the constructor or method represented by the specified handle, for the specified generic type.
|
|
GetParameters ( ) : System.Reflection.ParameterInfo[] |
When overridden in a derived class, gets the parameters of the specified method or constructor.
|
|
Invoke ( object obj, BindingFlags invokeAttr, |
When overridden in a derived class, invokes the reflected method or constructor with the given parameters.
|
|
Invoke ( object obj, object parameters ) : object |
Invokes the method or constructor represented by the current instance, using the specified parameters.
|
Method | Description | |
---|---|---|
MethodBase ( string name, ParameterInfo parameters, MethodAttributes methodAttributes, Attribute attributes ) : System.Globalization |
Initializes a new instance of the T:System.Reflection.MethodBase class.
|
Method | Description | |
---|---|---|
GetParametersNoCopy ( ) : System.Reflection.ParameterInfo[] |
public static GetCurrentMethod ( ) : |
||
return |
public GetGenericArguments ( ) : System.Type[] | ||
return | System.Type[] |
public static GetMethodFromHandle ( |
||
handle | The method's handle. | |
return |
public static GetMethodFromHandle ( |
||
handle | A handle to the internal metadata representation of a constructor or method. | |
declaringType | A handle to the generic type that defines the constructor or method. | |
return |
public GetParameters ( ) : System.Reflection.ParameterInfo[] | ||
return | System.Reflection.ParameterInfo[] |
public abstract Invoke ( object obj, BindingFlags invokeAttr, |
||
obj | object | The object on which to invoke the method or constructor. If a method is static, this argument is ignored. If a constructor is static, this argument must be null or an instance of the class that defines the constructor. |
invokeAttr | BindingFlags | A bitmask that is a combination of 0 or more bit flags from |
binder | An object that enables the binding, coercion of argument types, invocation of members, and retrieval of MemberInfo objects via reflection. If |
|
parameters | object | An argument list for the invoked method or constructor. This is an array of objects with the same number, order, and type as the parameters of the method or constructor to be invoked. If there are no parameters, this should be null.If the method or constructor represented by this instance takes a ByRef parameter, there is no special attribute required for that parameter in order to invoke the method or constructor using this function. Any object in this array that is not explicitly initialized with a value will contain the default value for that object type. For reference-type elements, this value is null. For value-type elements, this value is 0, 0.0, or false, depending on the specific element type. |
culture | CultureInfo | An instance of CultureInfo used to govern the coercion of types. If this is null, the CultureInfo for the current thread is used. (This is necessary to convert a String that represents 1000 to a Double value, for example, since 1000 is represented differently by different cultures.) |
return | object |
public Invoke ( object obj, object parameters ) : object | ||
obj | object | The object on which to invoke the method or constructor. If a method is static, this argument is ignored. If a constructor is static, this argument must be null or an instance of the class that defines the constructor. |
parameters | object | An argument list for the invoked method or constructor. This is an array of objects with the same number, order, and type as the parameters of the method or constructor to be invoked. If there are no parameters, |
return | object |
protected MethodBase ( string name, ParameterInfo parameters, MethodAttributes methodAttributes, Attribute attributes ) : System.Globalization | ||
name | string | |
parameters | ParameterInfo | |
methodAttributes | MethodAttributes | |
attributes | Attribute | |
return | System.Globalization |