System.Reflection.EventInfo.GetOtherMethods Method

Returns the methods that have been associated with the event in metadata using the .other directive, specifying whether to include non-public methods.

Syntax

public virtual MethodInfo[] GetOtherMethods (bool nonPublic)

Parameters

nonPublic
true to include non-public methods; otherwise, false.

Returns

An array of System.Reflection.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.

Remarks

The metadata for an event can associate four kinds of methods with the event:

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.

Requirements

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0