This documentation is archived and is not being maintained.

MethodBuilder Methods

The methods of the MethodBuilder class are listed here. For a complete list of MethodBuilder class members, see the MethodBuilder Members topic.

Public Methods

public methodAddDeclarativeSecurity Adds declarative security to this method.
public methodCreateMethodBody Creates the body of the method using a supplied byte array of Microsoft Intermediate Language (MSIL) instructions.
public methodDefineParameter Defines a parameter of this method.
public methodEquals Overridden. Determines whether the given object is equal to this instance.
public methodGetBaseDefinition Overridden. Return the base implementation for a method.
public methodGetCustomAttributes Overloaded. Overridden. Returns the custom attributes defined for this method.
public methodGetHashCode Overridden. Gets the hash code for this method.
public methodGetILGenerator Overloaded. Returns an ILGenerator for this method.
public methodGetMethodImplementationFlags Overridden. Returns the implementation flags for the method.
public methodGetModule Returns a reference to the module that contains this method.
public methodGetParameters Overridden. Returns the parameters of this method.
public methodGetToken Returns the MethodToken that represents the token for this method.
public methodGetType (inherited from Object) Gets the Type of the current instance.
public methodInvoke Overloaded.
public methodIsDefined Overridden. Checks if the specified custom attribute type is defined.
public methodSetCustomAttribute Overloaded. Sets a custom attribute.
public methodSetImplementationFlags Sets the implementation flags for this method.
public methodSetMarshal Sets marshaling information for the return type of this method.
public methodSetSymCustomAttribute Set a symbolic custom attribute using a blob.
public methodToString Overridden. Returns this MethodBuilder instance as a string.

Protected Methods

protected methodFinalize (inherited from Object) Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

MethodBuilder Class | System.Reflection.Emit Namespace