Click or drag to resize

ExtensionsReflectionMatchesArgumentTypes Method (ParameterInfo, Type)

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

Namespace:  Cauldron
Assembly:  Cauldron.Activator (in Cauldron.Activator.dll) Version: 3.2.0.1 (3.2.0.1)
Syntax
C#
public static bool MatchesArgumentTypes(
	this ParameterInfo[] parameters,
	Type[] argumentTypes
)

Parameters

parameters
Type: System.ReflectionParameterInfo
The parameters 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 parameters 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 . 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