Answer:
When the C#.NET Generics are instantiated, then the CLR compiles and stores the information related to the generic types that is it refers to the location in memory of the reference type to which it is bound for all the instances. Here the classes and methods can treat the values of different types uniformly.
The main purpose of using this is to facilitate type safety, improves performance and reduces code. It also promotes the usage of parameterized types in an application.
Asked In: Many Interviews |
Alert Moderator