Metalama 1.0 / / Metalama Documentation / Aspect API / Metalama.​Framework.​Code / IGeneric / Type­Arguments

Property TypeArguments

TypeArguments

Gets the generic type arguments of the current type or method, which are the type values applied to the TypeParameters of the current type. The number of items in this list is always the same as in TypeParameters.

Declaration
IReadOnlyList<IType> TypeArguments { get; }
Property Value
Type Description
IReadOnlyList<IType>
Remarks

When reflecting a generic declaration, i.e. with unbound type parameters, the content of this collection is identical to TypeParameters. That is, there is no such thing as an unbound generic declaration in Metalama because generic declarations are bound to their parameters.