Skip to content

Latest commit

 

History

History
13 lines (12 loc) · 525 Bytes

i.10.7.4-constraint-type-restrictions.md

File metadata and controls

13 lines (12 loc) · 525 Bytes

I.10.7.4 Constraint type restrictions

CLS Rule 45:

Types used as constraints on generic parameters shall themselves be CLS-compliant.

[Note:

CLS (consumer): Need not consume types that violate this rule.

CLS (extender): Same as consumers. Extenders choosing to support definition of generic types shall follow this rule when checking for CLS compliance, and need not provide syntax to violate this rule.

CLS (framework): Shall not expose types that violate this rule. end note]