 public class GenericList

class TestGenericList

When compared with C++ templates, C# generics can provide enhanced safety, but also have somewhat limited capabilities.For example, it is not possible to call arithmetic operators on a C# generic type.Unlike C++ templates, .NET parameterized types are instantiated at runtime rather than by the compiler; hence they can be cross-language whereas C++ templates cannot.