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 are an object and a class?
What is delegation in .net?
What are the different types of assemblies?
What is connection pooling and how do you make your application use it?
Explain re-clarification of object based in .net?
<li id="Accomodation" runat="server" visible="false"><a href="../searchaccommodation.aspx?">Accomm</a></li> i have this code.now on server side i want to compare this id(Accommodation) value and want id i.e.Accommodation.visible=true;
What's the .net collection class that allows an element to be accessed using a unique key?
Explain what are possible implementations of distributed applications in .net?
How do you view the methods and members of a dll?
Directcast(123.34,integer) - should it throw an error? Why or why not?
What is the difference between Dataset and DataReader? Can u breif me ADO.net classes and architecture
What are the new 2.0 features useful for?