Hi Community,
Yesterday during my presentation at TechEd I was asked by someone in the audience, if C# Generics were similar to C++ templates and I said… “The syntax might be similar but they’re different, and C++ templates have been with us for a long time now, actually… C# has borrowed from some other languages certain features – I’m not gonna mention which ones, in the case of C# Generics’ syntax it’s a bit C++ like”. I told the person who asked me the question to discuss this in more detail after the session, but unfortunately he left while I was answering some post session questions. There are a couple of papers below which explain this in detail.
- http://msdn.microsoft.com/en-us/library/c6cyy67b.aspx
- http://blogs.msdn.com/b/branbray/archive/2003/11/19/51023.aspx
- http://ondotnet.com/dotnet/excerpt/progcsharp4_ch09-04/index.html
So this blog post is to clarify a bit my statement as previously mentioned.
Best Regards,
Angel