System.Reflection.Emit.Lightweight
Defines and represents a dynamic method that can be compiled, executed, and discarded. Discarded methods are available for garbage collection.
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.
The name of the dynamic method. This can be a zero-length string, but it cannot be null.
A bitwise combination of values that specifies the attributes of the dynamic method. The only combination allowed is and .
The calling convention for the dynamic method. Must be .
A object that specifies the return type of the dynamic method, or null if the method has no return type.
An array of objects specifying the types of the parameters of the dynamic method, or null if the method has no parameters.
A representing the module with which the dynamic method is to be logically associated.
true to skip JIT visibility checks on types and members accessed by the MSIL of the dynamic method; otherwise, false.
An element of is null or .-or- is a module that provides anonymous hosting for dynamic methods.
is null. -or- is null.
is a combination of flags other than and .-or- is not .-or- is a type for which returns true.
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.
The name of the dynamic method. This can be a zero-length string, but it cannot be null.
A bitwise combination of values that specifies the attributes of the dynamic method. The only combination allowed is and .
The calling convention for the dynamic method. Must be .
A object that specifies the return type of the dynamic method, or null if the method has no return type.
An array of objects specifying the types of the parameters of the dynamic method, or null if the method has no parameters.
A with which the dynamic method is logically associated. The dynamic method has access to all members of the type.
true to skip JIT visibility checks on types and members accessed by the MSIL of the dynamic method; otherwise, false.
An element of is null or . -or- is an interface, an array, an open generic type, or a type parameter of a generic type or method.
is null. -or- is null.
is a combination of flags other than and .-or- is not .-or- is a type for which returns true.
Initializes an anonymously hosted dynamic method, specifying the method name, return type, and parameter types.
The name of the dynamic method. This can be a zero-length string, but it cannot be null.
A object that specifies the return type of the dynamic method, or null if the method has no return type.
An array of objects specifying the types of the parameters of the dynamic method, or null if the method has no parameters.
An element of is null or .
is null.
is a type for which returns true.
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.
The name of the dynamic method. This can be a zero-length string, but it cannot be null.
A object that specifies the return type of the dynamic method, or null if the method has no return type.
An array of objects specifying the types of the parameters of the dynamic method, or null if the method has no parameters.
true to skip JIT visibility checks on types and members accessed by the MSIL of the dynamic method, with this restriction: the trust level of the assemblies that contain those types and members must be equal to or less than the trust level of the call stack that emits the dynamic method; otherwise, false.
An element of is null or .
is null.
is a type for which returns true.
Creates a dynamic method that is global to a module, specifying the method name, return type, parameter types, and module.
The name of the dynamic method. This can be a zero-length string, but it cannot be null.
A object that specifies the return type of the dynamic method, or null if the method has no return type.
An array of objects specifying the types of the parameters of the dynamic method, or null if the method has no parameters.
A representing the module with which the dynamic method is to be logically associated.
An element of is null or . -or- is a module that provides anonymous hosting for dynamic methods.
is null. -or- is null.
is a type for which returns true.
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.
The name of the dynamic method. This can be a zero-length string, but it cannot be null.
A object that specifies the return type of the dynamic method, or null if the method has no return type.
An array of objects specifying the types of the parameters of the dynamic method, or null if the method has no parameters.
A representing the module with which the dynamic method is to be logically associated.
true to skip JIT visibility checks on types and members accessed by the MSIL of the dynamic method.
An element of is null or . -or- is a module that provides anonymous hosting for dynamic methods.
is null. -or- is null.
is a type for which returns true.
Creates a dynamic method, specifying the method name, return type, parameter types, and the type with which the dynamic method is logically associated.
The name of the dynamic method. This can be a zero-length string, but it cannot be null.
A object that specifies the return type of the dynamic method, or null if the method has no return type.
An array of objects specifying the types of the parameters of the dynamic method, or null if the method has no parameters.
A with which the dynamic method is logically associated. The dynamic method has access to all members of the type.
An element of is null or .-or- is an interface, an array, an open generic type, or a type parameter of a generic type or method.
is null. -or- is null.
is null, or is a type for which returns true.
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.
The name of the dynamic method. This can be a zero-length string, but it cannot be null.
A object that specifies the return type of the dynamic method, or null if the method has no return type.
An array of objects specifying the types of the parameters of the dynamic method, or null if the method has no parameters.
A with which the dynamic method is logically associated. The dynamic method has access to all members of the type.
true to skip JIT visibility checks on types and members accessed by the MSIL of the dynamic method; otherwise, false.
An element of is null or .-or- is an interface, an array, an open generic type, or a type parameter of a generic type or method.
is null. -or- is null.
is null, or is a type for which returns true.
Gets the attributes specified when the dynamic method was created.
A bitwise combination of the values representing the attributes for the method.
Gets the calling convention specified when the dynamic method was created.
One of the values that indicates the calling convention of the method.
Completes the dynamic method and creates a delegate that can be used to execute it.
A delegate of the specified type, which can be used to execute the dynamic method.
A delegate type whose signature matches that of the dynamic method.
The dynamic method has no method body.
has the wrong number of parameters or the wrong parameter types.
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.
A delegate of the specified type, which can be used to execute the dynamic method with the specified target object.
A delegate type whose signature matches that of the dynamic method, minus the first parameter.
An object the delegate is bound to. Must be of the same type as the first parameter of the dynamic method.
The dynamic method has no method body.
is not the same type as the first parameter of the dynamic method, and is not assignable to that type.-or- has the wrong number of parameters or the wrong parameter types.
Gets the type that declares the method, which is always null for dynamic methods.
Always null.
Returns a Microsoft intermediate language (MSIL) generator for the method with a default MSIL stream size of 64 bytes.
An object for the method.
Returns a Microsoft intermediate language (MSIL) generator for the method with the specified MSIL stream size.
An object for the method, with the specified MSIL stream size.
The size of the MSIL stream, in bytes.
Returns the parameters of the dynamic method.
An array of objects that represent the parameters of the dynamic method.
Gets or sets a value indicating whether the local variables in the method are zero-initialized.
true if the local variables in the method are zero-initialized; otherwise, false. The default is true.
Gets the name of the dynamic method.
The simple name of the method.
Gets the return parameter of the dynamic method.
Always null.
Gets the type of return value for the dynamic method.
A representing the type of the return value of the current method; if the method has no return type.
Returns the signature of the method, represented as a string.
A string representing the method signature.