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

GetTypeArguments(object[])

Return the type argments for the method, deducing them from the arguments actually provided.

public Type[] GetTypeArguments(object[] argList)

Parameters

argList object[]

The arguments to the method

Returns

Type[]

An array of type arguments.