Skip to content

What about constraints for type parameters? #17348

@ClaudioFriederich

Description

@ClaudioFriederich

How do you (can you) specify type parameter constraints? In particular, specify that the type must implement an interface or derive from a base class? For example, suppose you wanted to use functionality in the constraint (i.e. modify the table template in the example to include autogenerated cells in each row, displaying values provided by a constraint base class or interface the type parameter must implement?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions