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
Is .net a programming language?
What is garbage collection and how it works. Provide a code example of how you can enforce garbage collection in .net?
What is connection pooling and how do you make your application use it?
How can you instantiate a tuple?
Explain about the features and elements present in Visual studio.NET IDE?
Describe the Managed Execution Process?
Is .net a language?
What do you mean by web service?
What is garbage collection? Explain the difference between garbage collections in .net 4.0 and earlier versions?
Is .net core managed code?
What are the types of assemblies in .net?
Explain what is the reason of occurring overflow-underflow arithmetic exception error, it shows error message when we run our program by adding control?
What is the procedure to add assemly to gac to make it shared one?
Explain the difference between task and thread in .net?
Explain the difference between garbage collections in .net 4.0 and earlier versions?