System.Reflection.Emit.TypeBuilder.DefineMethod Method

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

Syntax

public MethodBuilder DefineMethod (string name, System.Reflection.MethodAttributes attributes, Type returnType, Type[] parameterTypes)

Parameters

name
The name of the method. name cannot contain embedded nulls.
attributes
The attributes of the method.
returnType
The return type of the method.
parameterTypes
The types of the parameters of the method.

Returns

The defined method.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Reflection.Emit
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0