.GetOtherMethods Method (Boolean)
.NET Framework (current version)
Returns the methods that have been associated with the event in metadata using the
.other directive, specifying whether to include non-public methods. Namespace:
mscorlib (in mscorlib.dll)
public virtual MethodInfo GetOtherMethods(
System.Boolean true to include non-public methods; otherwise, false. Return Value
An array of
EventInfo objects representing methods that have been associated with an event in metadata by using the .other directive. If there are no methods matching the specification, an empty array is returned.
The metadata for an event can associate four kinds of methods with the event:
.addon directive specifies the method used to add event handlers. Use the GetAddMethod method to retrieve an EventInfo for that method.
.removeon directive specifies the method used to detach event handlers. Use the GetRemoveMethod method to retrieve an EventInfo for this method.
.fire directive specifies the method used to raise the event. Use the GetRaiseMethod method to retrieve an EventInfo for this method.
.other directive specifies any other methods associated with the event. Use the GetOtherMethods method to retrieve an array of EventInfo objects for those methods.
The methods associated with an event using the
.other directive have no special significance to the runtime. The C# and Visual Basic compilers do not use the .other directive. .NET Framework Available since 2.0 Return to top