DynamicMethod Constructor (String, Type, Type(), Boolean)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
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.
Assembly: mscorlib (in mscorlib.dll)
'Declaration Public Sub New ( _ name As String, _ returnType As Type, _ parameterTypes As Type(), _ restrictedSkipVisibility As Boolean _ )
Parameters
- name
- Type: System.String
The name of the dynamic method. This can be a zero-length string, but it cannot be Nothing.
- returnType
- Type: System.Type
A Type object that specifies the return type of the dynamic method, or Nothing 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 Nothing if the method has no parameters.
- restrictedSkipVisibility
- Type: System.Boolean
true to skip JIT visibility checks on types and members accessed by the MSIL of the dynamic method; otherwise, false.
Show: