What are Generics? Where do we use them.
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
What is Event - Delegate? clear syntax for writing a event delegate
What are the similarities and difference between class and structure in .net?
When displaying fonts, what is the difference between pixels, points and ems?
What application do you use to install a Windows service?
How can you assign an rgb color to a system.drawing.color object?
What is meant fulltrust?
what is the default value of CHAR type?in C# using asp.net?
What is the Difference between a sub and a function?
Explain what are an object and a class?
What are the two main parts of the .net framework?
How can you clean up objects holding resources from within the code?
What is a strong name in .net?