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
Explain me what is .net web service?
What is manifest in .net?
Does .net supports destructors concept?
What is Finalizer in .NET define Dispose and Finalize ?
what is the default security setting in .net?
What is jit compilers?
How we can achieve Connection pooling in .Net?
Is there any inbuilt tool or command provided by .NET to view the code inside the assembly?
Explain the difference between garbage collections in .net 4.0 and earlier versions?
Explain boxing and unboxing in .net.
Tell us what is heap and what is stack?
What is machine.config in .net?
Explain why do we use the “using” statement?
What is "common language specification" (cls) in .net?
What tools can I use to develop .net applications?