Skip to content

Glossary: C# Beyond the Basics

constraint

Also written: constraints, where

A `where` rule that says what a type parameter must be able to do, such as `where T : IHasSku`. It lets generic code use those members.

Where the book teaches it

Related terms

generictype parameterIComparable<T>