| ExtensionsReflectionGetMethodEx Method |
Searches for the specified public method whose parameters match the specified argument types.
Namespace:
Cauldron
Assembly:
Cauldron.Activator (in Cauldron.Activator.dll) Version: 3.2.0.2
Syntax Parameters
- type
- Type: SystemType
The Type that contains the methods - methodName
- Type: SystemString
The string containing the name of the method to get. - parameterTypes
- Type: SystemType
The type of parameters the method should have - bindingFlags (Optional)
- Type: System.ReflectionBindingFlags
A bitmask comprised of one or more BindingFlags that specify how the search is conducted.
Return Value
Type:
MethodInfo
An object representing the public method whose parameters match the specified argument
types, if found; otherwise, null.
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).
Exceptions See Also