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 channels in .NET Remoting?
where are connection strings stored?
What is portable executable (PE)?
Which two properties are on every validation control?
Using com component in .net?
How does cas works?
Directcast(123.34,integer) - should it throw an error? Why or why not?
Do you know what's the difference between .net and laravel?
Which ports are used by virueses?
What is a design pattern and what is it for?
What is different between User Control and Web Control and Custom Control?
What is an anonymous method and how is it different from a lambda expression?