MetalamaAPI documentationAspect APIMetalama.​Framework.​CodeIGenericIs­Canonical­Generic­Instance
Open sandboxFocus

IGeneric.IsCanonicalGenericInstance Property


Gets a value indicating whether all type parameters are bound to themselves, i.e. if the content of TypeArguments and TypeParameters are equal. This property returns true if the current declaration has no generic argument. For generic methods, this property returns false if the declaring type is generic but is not a canonical generic instance.

bool IsCanonicalGenericInstance { get; }
Property Value
Type Description