Click or drag to resize

ExtensionsReflectionMatchesArgumentTypes Method (MethodBase, Type)

Returns true if the argument types defined by argumentTypes matches with the argument types of method

Namespace:  Cauldron
Assembly:  Cauldron.Activator (in Cauldron.Activator.dll) Version: 3.2.0.2
Syntax
public static bool MatchesArgumentTypes(
	this MethodBase method,
	Type[] argumentTypes
)

Parameters

method
Type: System.ReflectionMethodBase
The method info which has to be compared to
argumentTypes
Type: SystemType
The argument types that has to match to

Return Value

Type: Boolean
true if the argument types of method matches with the argument type defined by argumentTypes; otherwise, false.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type MethodBase. 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