WithTypeArguments(INamedType, params IType[])
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
| Type | Name | Description |
|---|---|---|
| INamedType | type | |
| IType[] | typeArguments |
Returns
| Type | Description |
|---|---|
| INamedType |
WithTypeArguments(INamedType, params Type[])
Declaration
[Obsolete("Use MakeGenericInstance instead.")]
public static INamedType WithTypeArguments(this INamedType type, params Type[] typeArguments)Parameters
| Type | Name | Description |
|---|---|---|
| INamedType | type | |
| Type[] | typeArguments |
Returns
| Type | Description |
|---|---|
| INamedType |
WithTypeArguments(INamedType, IReadOnlyList<Type>)
Declaration
[Obsolete("Use MakeGenericInstance instead.")]
public static INamedType WithTypeArguments(this INamedType type, IReadOnlyList<Type> typeArguments)Parameters
| Type | Name | Description |
|---|---|---|
| INamedType | type | |
| IReadOnlyList<Type> | typeArguments |
Returns
| Type | Description |
|---|---|
| INamedType |
WithTypeArguments(INamedType, IReadOnlyList<IType>)
Declaration
[Obsolete("Use INamedType.MakeGenericInstance instead.")]
public static INamedType WithTypeArguments(this INamedType type, IReadOnlyList<IType> typeArguments)Parameters
| Type | Name | Description |
|---|---|---|
| INamedType | type | |
| IReadOnlyList<IType> | typeArguments |
Returns
| Type | Description |
|---|---|
| INamedType |
WithTypeArguments(IMethod, params Type[])
Declaration
[Obsolete("Use MakeGenericInstance instead.")]
public static IMethod WithTypeArguments(this IMethod method, params Type[] typeArguments)Parameters
| Type | Name | Description |
|---|---|---|
| IMethod | method | |
| Type[] | typeArguments |
Returns
| Type | Description |
|---|---|
| IMethod |
WithTypeArguments(IMethod, params IType[])
Declaration
[Obsolete("Use MakeGenericInstance instead.")]
public static IMethod WithTypeArguments(this IMethod method, params IType[] typeArguments)Parameters
| Type | Name | Description |
|---|---|---|
| IMethod | method | |
| IType[] | typeArguments |
Returns
| Type | Description |
|---|---|
| IMethod |
WithTypeArguments(IMethod, IReadOnlyList<IType>)
Declaration
public static IMethod WithTypeArguments(this IMethod method, IReadOnlyList<IType> typeArguments)Parameters
| Type | Name | Description |
|---|---|---|
| IMethod | method | |
| IReadOnlyList<IType> | typeArguments |
Returns
| Type | Description |
|---|---|
| IMethod |
WithTypeArguments(IMethod, IReadOnlyList<Type>, IReadOnlyList<Type>)
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
| Type | Name | Description |
|---|---|---|
| IMethod | method | |
| IReadOnlyList<Type> | typeTypeArguments | |
| IReadOnlyList<Type> | methodTypeArguments |
Returns
| Type | Description |
|---|---|
| IMethod |
WithTypeArguments(IMethod, Type[], Type[])
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
| Type | Description |
|---|---|
| IMethod |