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
How can I process command-line arguments?
Can a abstract class have a constructor?
What is the difference between and xml documentation tag?
What is interface inheritance?
What are the Types of optimization and name a few and how do u do?
When should you use generics?
Can you instantiate an abstract class c#?
What is sql transaction in c#?
What is use of console?
What is the difference between yield and return?
What is the difference between structure and class in c#?
Why ienumerable is used in c#?
Differentiate between method overriding from method overloading with its functionality?
What is difference between for and foreach in c#?
Explain the difference between passing parameters by value and passing parameters by reference with an example?