What are Generics?

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


Please Help Members By Posting Answers For Below Questions

What is parseexact c#?

534


What is the difference between Static, Const and read only?

544


Is a c# interface the same as a c++ abstract class?

566


What is dll in c#?

510


write a c# program add two matrix with input number ?

567






What is an int c#?

482


How can I use .NET components from COM programs?

499


Which property do we set on a Combo Box to display data on it prior to setting the DataSource ?

542


What are cshtml files?

490


What is a virtual property. Give an example?

524


Is java better than c sharp?

515


What is thread and explain states of a thread in c#?

482


Why dataset is used in c#?

515


What is the syntax for calling an overloaded constructor within a constructor?

540


How do you escape a character?

491