UtilReflectionGetMethod(Type, String, Type) Method

Searches for the target method in the specified Type.

Definition

Namespace: DevCase.Core.Diagnostics.Assembly.Reflection
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static MethodInfo GetMethod(
	Type type,
	string methodName,
	Type[] types
)

Parameters

type  Type
The source type from which to retrieve the method.
methodName  String
The name of the method to search for.
types  Type
An array of Type objects representing the number, order, and type of the parameters for the method to get.

You can specify an empty array of Type objects (as provided by the EmptyTypes field) to get a method that takes no parameters.

Return Value

MethodInfo
A MethodInfo instance that represents the resulting method.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

See Also