comparatie generics si template-uri
Va rog sa folositi acest URL NOU
de la
http://serviciipeweb.ro/iafblog/
Foarte interesanta
Crezusem ca generics == templates ( iata ca sctiu in C# si nu in vb ... mda)
Dar se pare ca nu ..
http://blogs.msdn.com/branbray/archive/2003/11/19/51023.aspx
Iata si o comparatie copiata de la linkul de mai sus :
Generics | Templates | |
Constraint mechanism | Subtype constraints | Lazy structural constraints |
Allows explicit specialization | No | Yes |
Allows partial specialization | No | Yes |
Type identity of specialization | Globally unique | Unique to each assembly |
Cross language facility | Yes | No |
Allowed parameters | Ref class, value class only | All types and non-type |
Name lookup and binding | At definition, to constraints | At specialization, to type |
0 Comments:
Trimiteți un comentariu
<< Home