Vote UpVote

Delphi Constraints in Generics – RAD Studio XE documentation wiki

The Wiert Corner – Quite a few things are similar when doing Generics in both Delphi and C#. But constraints are a bit different. To quote the Delphi Wiki: Constraints can be associated with a type parameter of a generic. Constraints declare items that must be supported by any particular type passed to that parameter in a construction of the generic type Constraint items include: Zero, one, or multiple interface types Zero or one class type The reserved word “constructor“, “class“, or “record“ You can specify both “constructor” and “class” for a ...
Favorite? Off-Topic? jpluimers @ 2011-04-21 07:00


Visits: 808
Votes: 1
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)