What are Generics? Where do we use them.
Answer Posted / rakesh kumar kunchala
Generics are used to have Typed Arrays.
Ex: if we have define that an array is confined to products.
if we push objects of product into array it accepts.
if we push employee objects into this array it will show
error . since the type of the array is product.
Is This Answer Correct ? | 9 Yes | 3 No |
Post New Answer View All Answers
Explain the .net framework overview?
How viewstate is being formed and how it is stored on client in .net?
What is the difference between a namespace and assembly name in .net?
I'm having some trouble with cas. How can I troubleshoot the problem?
What is il and c#?
Is .net core the future?
What tools can I use to develop .net applications?
What is reflection in microsoft .net context?
Explain cas (code access security)?
What is the use com component in .net?
How to create multiple inheritance in c#, with example?
What is Event Bubbling in .NET?
What is the use of common language runtime?
What is lazy initialization?
How to view a .NET assembly?