In principal, despre .NET, VB6. C#,VB.NET, ASP.NET Apoi despre programare si multe alte chestii ... de programare.

Subscribe RSS   Mini tools List

luni, iunie 27, 2005

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

Links to this post:

Creați un link

<< Home

 
Acest blog s-a mutat la http://www.serviciipeweb.ro/iafblog/