[Solved] C# method signatures – restricting types – what’s the correct terminology? [closed]


I think the term you are looking for is generic type constraints.

From the linked MSDN article:

When you define a generic class, you can apply restrictions to the kinds of types that client code can use for type arguments when it instantiates your class. If client code tries to instantiate your class by using a type that is not allowed by a constraint, the result is a compile-time error. These restrictions are called constraints.

0

solved C# method signatures – restricting types – what’s the correct terminology? [closed]