System.Reflection.Emit.DynamicMethod Members

The members of System.Reflection.Emit.DynamicMethod are listed below.

See Also: Inherited members from System.Reflection.MethodInfo

Public Constructors

Initializes an anonymously hosted dynamic method, specifying the method name, return type, and parameter types.

Initializes an anonymously hosted dynamic method, specifying the method name, return type, parameter types, and whether just-in-time (JIT) visibility checks should be skipped for types and members accessed by the Microsoft intermediate language (MSIL) of the dynamic method.

Creates a dynamic method that is global to a module, specifying the method name, return type, parameter types, and module.

Creates a dynamic method, specifying the method name, return type, parameter types, and the type with which the dynamic method is logically associated.

Creates a dynamic method that is global to a module, specifying the method name, return type, parameter types, module, and whether just-in-time (JIT) visibility checks should be skipped for types and members accessed by the Microsoft intermediate language (MSIL) of the dynamic method.

Creates a dynamic method, specifying the method name, return type, parameter types, the type with which the dynamic method is logically associated, and whether just-in-time (JIT) visibility checks should be skipped for types and members accessed by the Microsoft intermediate language (MSIL) of the dynamic method.

Creates a dynamic method that is global to a module, specifying the method name, attributes, calling convention, return type, parameter types, module, and whether just-in-time (JIT) visibility checks should be skipped for types and members accessed by the Microsoft intermediate language (MSIL) of the dynamic method.

Creates a dynamic method, specifying the method name, attributes, calling convention, return type, parameter types, the type with which the dynamic method is logically associated, and whether just-in-time (JIT) visibility checks should be skipped for types and members accessed by the Microsoft intermediate language (MSIL) of the dynamic method.

Public Properties

[read-only]
override
AttributesSystem.Reflection.MethodAttributes.

Gets the attributes specified when the dynamic method was created.

[read-only]
override
CallingConventionSystem.Reflection.CallingConventions.

Gets the calling convention specified when the dynamic method was created.

[read-only]
override
DeclaringTypeType.

Gets the type that declares the method, which is always null for dynamic methods.

InitLocalsbool.

Gets or sets a value indicating whether the local variables in the method are zero-initialized.

[read-only]
override
MethodHandleRuntimeMethodHandle.

Not supported for dynamic methods.

[read-only]
override
ModuleSystem.Reflection.Module.

Gets the module with which the dynamic method is logically associated.

[read-only]
override
Namestring.

Gets the name of the dynamic method.

[read-only]
override
ReflectedTypeType.

Gets the class that was used in reflection to obtain the method.

[read-only]
override
ReturnParameterSystem.Reflection.ParameterInfo.

Gets the return parameter of the dynamic method.

[read-only]
override
ReturnTypeType.

Gets the type of return value for the dynamic method.

[read-only]
override
ReturnTypeCustomAttributesSystem.Reflection.ICustomAttributeProvider.

Gets the custom attributes of the return type for the dynamic method.

Public Methods

override
CreateDelegate(Type) : Delegate

Completes the dynamic method and creates a delegate that can be used to execute it.

override
CreateDelegate(Type, object) : Delegate

Completes the dynamic method and creates a delegate that can be used to execute it, specifying the delegate type and an object the delegate is bound to.

DefineParameter(int, System.Reflection.ParameterAttributes, string) : ParameterBuilder

Defines a parameter of the dynamic method.

Finalize()
Documentation for this section has not yet been entered.
override
GetBaseDefinition() : System.Reflection.MethodInfo

Returns the base implementation for the method.

override
GetCustomAttributes(bool) : object[]

Returns all the custom attributes defined for the method.

override
GetCustomAttributes(Type, bool) : object[]

Returns the custom attributes of the specified type that have been applied to the method.

GetDynamicILInfo() : DynamicILInfo

Returns a System.Reflection.Emit.DynamicILInfo object that can be used to generate a method body from metadata tokens, scopes, and Microsoft intermediate language (MSIL) streams.

GetILGenerator() : ILGenerator

Returns a Microsoft intermediate language (MSIL) generator for the method with a default MSIL stream size of 64 bytes.

GetILGenerator(int) : ILGenerator

Returns a Microsoft intermediate language (MSIL) generator for the method with the specified MSIL stream size.

override
GetMethodImplementationFlags() : System.Reflection.MethodImplAttributes

Returns the implementation flags for the method.

override
GetParameters() : System.Reflection.ParameterInfo[]

Returns the parameters of the dynamic method.

override
Invoke(object, System.Reflection.BindingFlags, System.Reflection.Binder, object[], System.Globalization.CultureInfo) : object

Invokes the dynamic method using the specified parameters, under the constraints of the specified binder, with the specified culture information.

override
IsDefined(Type, bool) : bool

Indicates whether the specified custom attribute type is defined.

override
ToString() : string

Returns the signature of the method, represented as a string.