Class CommonTypeExtensions
System.
Inheritance
Namespace: System
Assembly: Copper.Common.dll
Syntax
public static class CommonTypeExtensions
Methods
View SourceGetGenericMethodDefinition(Type, String, BindingFlags, Type[])
Returns a System.
Declaration
public static MethodInfo GetGenericMethodDefinition(this Type type, string name, BindingFlags bindingFlags, params Type[] typeArguments)
Parameters
Type | Name | Description |
---|---|---|
System. |
type | The type on which the generic method is declared. |
System. |
name | The name of the generic method. |
System. |
bindingFlags | A bitwise combination of the enumeration values that specify how the search is conducted. |
System. |
typeArguments | An array of types to be substituted for the type parameters of the current generic method definition. |
Returns
Type | Description |
---|---|
System. |
A System. |
GetGenericMethodDefinition(Type, String, Type[])
Returns a System.
Declaration
public static MethodInfo GetGenericMethodDefinition(this Type type, string name, params Type[] typeArguments)
Parameters
Type | Name | Description |
---|---|---|
System. |
type | The type on which the generic method is declared. |
System. |
name | The name of the generic method. |
System. |
typeArguments | An array of types to be substituted for the type parameters of the current generic method definition. |
Returns
Type | Description |
---|---|
System. |
A System. |