Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DynamicMethod Constructor (String, Type, Type[], Module, Boolean)

This member can be used only by trusted applications. If you try to use this member in a partial-trust application, your code will throw a MethodAccessException exception. This member is security-critical, which restricts its use.
[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.

Namespace:  System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

[SecurityCriticalAttribute]
public DynamicMethod(
	string name,
	Type returnType,
	Type[] parameterTypes,
	Module m,
	bool skipVisibility
)

Parameters

name
Type: System.String
The name of the dynamic method. This can be a zero-length string, but it cannot be null.
returnType
Type: System.Type
A Type object that specifies the return type of the dynamic method, or null if the method has no return type.
parameterTypes
Type: System.Type[]
An array of Type objects specifying the types of the parameters of the dynamic method, or null if the method has no parameters.
m
Type: System.Reflection.Module
A Module representing the module with which the dynamic method is to be logically associated.
skipVisibility
Type: System.Boolean
true to skip JIT visibility checks on types and members accessed by the MSIL of the dynamic method.

Silverlight

Supported in: 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

Show:
© 2014 Microsoft