ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button
  C# Generics
Subject:   Templates
Date:   2004-05-19 10:18:21
From:   JesseLiberty
Response to: Templates

Aside from a few syntactic differences, the key difference is that the template is instantiated at run time, allowing the CLR to share code among various instantiations (e.g., a queue of strings, a queue of ints and a queue of Dogs) reducing code-bloat.

You might find a bit more in the white paper on the C# spec at The C# Language Page on MSDN -- scroll down to Reference and download the C# 2.0 specification.