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
What is .net environment?
What is difference between static page and dynamic page?
Can you create instance of a class which has private constructor?
What is the difference between user control an custom control? Advantages/disadvantages?
Explain me what is the difference between a class and an object, and how do these terms relate to each other?
Can a try block have more than one catch block?
Which Namespace is used to to achieve MultiThreading in .NET?
Explain Creational design pattern in .NET?
why you wouldn't want to write into it even if you could
Sql Queries: A Table will be given Omiting Duplicate rows and adding a new column
How is threading done in .net?
What is func in .net 3.5?
I want to serialize instances of my class. Should I use xmlserializer, soapformatter or binaryformatter?
Using activex control in .net?
How many types of design patterns available in .NET?