MetalamaAPI documentationAspect APIMetalama.​Framework.​CodeIGenericType­Arguments
Open sandboxFocus

IGeneric.TypeArguments Property


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.