Does C# have templates like C++?
Although C# doesn’t have templates, and isn’t likely to get them, it does (as version 2.0, in Visual Studio 2005) have a feature called generics. Generics provide a lot of the functionality of C++ templates (mostly in terms of type safety) but in a more restricted (and therefore potentially less confusing) way.