System.Reflection.Emit.ModuleBuilder.GetArrayMethod Method

Returns the named method on an array class.

Syntax

public System.Reflection.MethodInfo GetArrayMethod (Type arrayClass, string methodName, System.Reflection.CallingConventions callingConvention, Type returnType, Type[] parameterTypes)

Parameters

arrayClass
An array class.
methodName
The name of a method on the array class.
callingConvention
The method's calling convention.
returnType
The return type of the method.
parameterTypes
The types of the method's parameters.

Returns

The named method on an array class.

Remarks

GetArrayMethod is useful when you have an array of a type whose definition has not been completed and you want to access methods defined on Array. For example, you might define a type and want to define a method that takes an array of the type as a parameter. In order to access the elements of the array, you will need to call methods of the Array class.

Requirements

Namespace: System.Reflection.Emit
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0