Class GenericMethodHelper
GenericMethodHelper is able to deduce the Type arguments for a generic method from the actual arguments provided.
public class GenericMethodHelper
- Inheritance
-
GenericMethodHelper
- Inherited Members
Constructors
GenericMethodHelper(MethodInfo)
Construct a GenericMethodHelper for a method
public GenericMethodHelper(MethodInfo method)
Parameters
method
MethodInfoMethodInfo for the method to examine
Methods
TryGetTypeArguments(object?[], out Type[]?)
Return the type arguments for the method, deducing them from the arguments actually provided.
public bool TryGetTypeArguments(object?[] argList, out Type[]? typeArguments)
Parameters
argList
object[]The arguments to the method
typeArguments
Type[]If successful, an array of type arguments.