DynamicMethod Constructor

Include Protected Members
Include Inherited Members

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Creates a dynamic method.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

Name Description
DynamicMethod(String, Type, array<Type>[]()[]) Creates an anonymously hosted dynamic method, specifying the method name, return type, and parameter types.
DynamicMethod(String, Type, array<Type>[]()[], Boolean) Creates 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.
DynamicMethod(String, Type, array<Type>[]()[], Module) Security Critical. Creates a dynamic method that is global to a module, specifying the method name, return type, parameter types, and module.
DynamicMethod(String, Type, array<Type>[]()[], Type) Security Critical. Creates a dynamic method, specifying the method name, return type, parameter types, and the type with which the dynamic method is logically associated.
DynamicMethod(String, Type, array<Type>[]()[], Module, Boolean) Security Critical. 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.
DynamicMethod(String, Type, array<Type>[]()[], Type, Boolean) Security Critical. 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.
DynamicMethod(String, MethodAttributes, CallingConventions, Type, array<Type>[]()[], Module, Boolean) Security Critical. 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.
DynamicMethod(String, MethodAttributes, CallingConventions, Type, array<Type>[]()[], Type, Boolean) Security Critical. 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.

Top

See Also

Reference

DynamicMethod Class

DynamicMethod Members

System.Reflection.Emit Namespace