Click or drag to resize

ExtensionsReflectionGetMethod Method

Returns all the methods of the current Type, using the specified binding constraints including those of the base classes.

Namespace:  Cauldron
Assembly:  Cauldron.Activator (in Cauldron.Activator.dll) Version: 3.2.0.2
Syntax
public static MethodInfo GetMethod(
	this Type type,
	string methodName,
	Type[] parameterTypes,
	BindingFlags bindingFlags
)

Parameters

type
Type: SystemType
The Type that contains the method
methodName
Type: SystemString
The name of the method to get
parameterTypes
Type: SystemType
The type of parameters the method should have
bindingFlags
Type: System.ReflectionBindingFlags
A bitmask comprised of one or more BindingFlags that specify how the search is conducted.

Return Value

Type: MethodInfo
A MethodInfo object representing the method defined for the current Type that match the specified binding constraint.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Type. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also