What are Generics? Where do we use them.

Answers were Sorted based on User's Feedback



What are Generics? Where do we use them...

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

What are Generics? Where do we use them...

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

Post New Answer

More Dot Net General Interview Questions

How do you define the lease of the object?

1 Answers  


What is namespace in .net?

0 Answers  


In code behind class, name the type of code found. Is it the server side code or client side code?

0 Answers   Accenture,


Explain clr, cts and cls?

0 Answers  


what is machine key error in .NET how can we solve it?

0 Answers  






What are good ADO.NET object(s) to replace the ADO Recordset object.

1 Answers  


can any one tel me the complete Testing Procedure of any one simple PROJECT i mean either web/windows based application?

0 Answers  


How do you handle Start, Pause, Continue and Stop calls from SCM within your application?

1 Answers  


Difference between user groups and code groups

0 Answers  


What is CCW (COM Callable Wrapper)

1 Answers  


What are the security policy levels in .Net

0 Answers  


What is deferred execution vs. Immediate execution in linq?

0 Answers  


Categories