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

Property 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.

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

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.