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
I'm having some trouble with cas. How can I troubleshoot the problem?
What is a serviced component?
What are the purposes of using .net?
Tell me what is a “jagged array”?
Explain the difference between task and thread in .net?
State the differences between the dispose() and finalize().
What do the terms “boxing” and “unboxing” mean?
What are the advantages of .net core?
Explain the difference between public and static modifiers?
Why inheritance is important?
Explain about .Net products?
What does cil do?
Define code access security (cas)?
Explain the use of activex control in .net?
Explain difference between panel and groupbox classes using .net?