What are Generics? Where do we use them.

Answer Posted / ritz

Generics was introduced in Framework 2.0
With generics we can have typed classes. While defining
class we simply give placeholders and when we create
objects of that class we declare the placeholder to be of
some type(like int, double, string, etc.) and from that
point on our object gets bind to that type only.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell us what is json data, and what is one way that .net developers can work with json?

568


What is the use of design pattern?

565


What is the difference between response.write & response.output.write?

591


Explain me how does linq work?

588


What is func in .net 3.5?

563






What is the use of activex control in .net?

583


Difference between machine.config and web.config?

564


What is an anonymous method?

527


Is there any inbuilt tool or command provided by .NET to view the code inside the assembly?

599


Explain what is the reason of occurring overflow-underflow arithmetic exception error, it shows error message when we run our program by adding control?

521


Do you know what is the difference between an abstract class and an interface?

528


What is msil, il?

600


What is .net3.5?

599


Explain something about WebService?

677


Explain the main components in .net?

561