System.Reflection.Module.GetMethod Method

Returns a method having the specified name.

Syntax

public MethodInfo GetMethod (string name)

Parameters

name
The method name.

Returns

A MethodInfo object having the specified name, or null if the method does not exist.

Exceptions

TypeReason
ArgumentNullException name is null .

Remarks

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

Requirements

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