Constructs a generic instance of an INamedType, with type arguments given as IType.
Declaration
public static INamedType WithTypeArguments(this INamedType type, params IType[] typeArguments)
Parameters
Returns
Declaration
[Obsolete("Use MakeGenericInstance instead.")]
public static INamedType WithTypeArguments(this INamedType type, params Type[] typeArguments)
Parameters
Returns
Declaration
[Obsolete("Use MakeGenericInstance instead.")]
public static INamedType WithTypeArguments(this INamedType type, IReadOnlyList<Type> typeArguments)
Parameters
Returns
Declaration
[Obsolete("Use INamedType.MakeGenericInstance instead.")]
public static INamedType WithTypeArguments(this INamedType type, IReadOnlyList<IType> typeArguments)
Parameters
Returns
Declaration
[Obsolete("Use MakeGenericInstance instead.")]
public static IMethod WithTypeArguments(this IMethod method, params Type[] typeArguments)
Parameters
Type |
Name |
Description |
IMethod |
method |
|
Type[] |
typeArguments |
|
Returns
Declaration
[Obsolete("Use MakeGenericInstance instead.")]
public static IMethod WithTypeArguments(this IMethod method, params IType[] typeArguments)
Parameters
Returns
Declaration
public static IMethod WithTypeArguments(this IMethod method, IReadOnlyList<IType> typeArguments)
Parameters
Returns
Declaration
[Obsolete("This method does not handle nested generic types into account. Use INamedType.MakeGenericInstance for each type, then IMethod.MakeGenericInstance.")]
public static IMethod WithTypeArguments(this IMethod method, IReadOnlyList<Type> typeTypeArguments, IReadOnlyList<Type> methodTypeArguments)
Parameters
Returns
Declaration
[Obsolete("This method does not handle nested generic types into account. Use INamedType.MakeGenericInstance for each type, then IMethod.MakeGenericInstance.")]
public static IMethod WithTypeArguments(this IMethod method, Type[] typeTypeArguments, Type[] methodTypeArguments)
Parameters
Type |
Name |
Description |
IMethod |
method |
|
Type[] |
typeTypeArguments |
|
Type[] |
methodTypeArguments |
|
Returns