Table of Contents

Class GenericMethodHelper

Namespace
NUnit.Framework.Internal
Assembly
nunit.framework.dll

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 MethodInfo

MethodInfo 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.

Returns

bool