TypeBuilder.DefineMethod Method

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Adds a method to the type.

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

NameDescription
System_CAPS_pubmethodDefineMethod(String, MethodAttributes)

Adds a new method to the type, with the specified name and method attributes.

System_CAPS_pubmethodDefineMethod(String, MethodAttributes, CallingConventions)

Adds a new method to the type, with the specified name, method attributes, and calling convention.

System_CAPS_pubmethodDefineMethod(String, MethodAttributes, CallingConventions, Type, Type[])

Adds a new method to the type, with the specified name, method attributes, calling convention, and method signature.

System_CAPS_pubmethodDefineMethod(String, MethodAttributes, CallingConventions, Type, Type[], Type[], Type[], Type[][], Type[][])

Adds a new method to the type, with the specified name, method attributes, calling convention, method signature, and custom modifiers.

System_CAPS_pubmethodDefineMethod(String, MethodAttributes, Type, Type[])

Adds a new method to the type, with the specified name, method attributes, and method signature.

Return to top
Show: