How do yo define generics in C#?

 Posted by Kmandapalli on 1/20/2014 | Category: C# Interview questions | Views: 841 | Points: 40
Answer:

Generics are the most powerful feature in C# 2.0.
Allows us to define type-safe data structures, without committing to actual data types. this results in significant performance as we can re-use data-processing algorithms without duplicating type specific code.Generics are similar to C++ templates, but are drastically different in implementation and capabilities


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response