Mono Class Library: System.Reflection.Module Overview | Members

System.Reflection.Module.GetMethod Method

Returns a System.Reflection.MethodInfo instance that reflects the global public method that has the specified name and parameter types, and is a member of the module reflected by the current instance. [Edit]

public MethodInfo GetMethod (string name, Type[] types)

Parameters

name
A string that specifies the name of the method to be returned. [Edit]
types
An array of Type objects that contain the parameter types to search for. [Edit]

Returns

A System.Reflection.MethodInfo instance that reflects the global public method that has the name name and parameter types types, and is a member of the module reflected by the current instance, if found; otherwise, returns null . [Edit]

Exceptions

TypeReason
ArgumentNullException

name is null .

-or-

types is null .

-or-

At least one element of types is null .

[Edit]

Remarks

Note: A global public method is a static method with a module-level scope.
[Edit]

Requirements

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