<PackageReference Include="NUnit" Version="3.13.1" />

GenericMethodHelper

public class GenericMethodHelper
GenericMethodHelper is able to deduce the Type arguments for a generic method from the actual arguments provided.

Construct a GenericMethodHelper for a method

public bool TryGetTypeArguments(object[] argList, out Type typeArguments)

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