Answer Posted / rama krishna
Generics are place holders for actuval types.
Generics are defenied with left and right angular brackets.
Generics allows you to define type safe data sturtures
without comiting to actual types.
Generics in .net let you reuse the code and effort you put
implemnting in it.once you develop,test and deploy ur
application it can be used with any data type with future
type also it will support.why bcoz Generics doen't force
boxing or unboxing for value types or downcasting the
refernce types.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Should I use double or float?
What is polymorphism in c sharp?
What do you mean by stack and heap in c#?
What are the different types of assemblies available and their purpose?
Why do we use hashtable in c#?
What are generations and how are they used by the garbage collector?
Does c# have primitives?
How do generics work in c#?
What is reference c#?
How more than one version of an assembly can keep in same place?
What is enum in c#?
What are the collection types can be used in c#?
What is ildasm.exe used for?
What is Named parameter in C#?
What is expression tree with example?