What is the use of generics in c#?



What is the use of generics in c#?..

Answer / Alok Kumar

Generics are used in C# to create reusable and type-safe classes, interfaces, structures, and methods. They allow the creation of parameterized data types, enabling the developer to write more efficient code.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is the advantage of singleton class?

1 Answers  


What are the benefits of using generics?

1 Answers  


How to create multi-dimensional array?

1 Answers   C DAC, CDAC,


What is the use of properties window?

1 Answers  


What are the applications of c#?

4 Answers  


what is the difference between the debug class and trace class?

1 Answers   Rolta,


how to calculate multiple pdf files page count?

0 Answers  


What are the extension methods in c#?

1 Answers  


Why do we need interfaces?

2 Answers   HCL,


What does exclamation mark mean in access query?

1 Answers  


Can a class have multiple constructors c#?

1 Answers  


Can the accessibility of a type member be greater than the accessibility of its containing type?

1 Answers  


Categories