AddOtherMethod Method

EventBuilder.AddOtherMethod Method (MethodBuilder)

 

Adds one of the "other" methods associated with this event. "Other" methods are methods other than the "on" and "raise" methods associated with an event. This function can be called many times to add as many "other" methods.

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

public void AddOtherMethod(
	MethodBuilder mdBuilder
)

Parameters

mdBuilder
Type: System.Reflection.Emit.MethodBuilder

A MethodBuilder object that represents the other method.

Exception Condition
ArgumentNullException

mdBuilder is null.

InvalidOperationException

CreateType has been called on the enclosing type.

.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Return to top
Show:
© 2016 Microsoft