what is the generics and where used generics in your project?

Answer Posted / santosh

generics are representing a general datatypes.. we can
store the data in any premitive data types..

syn:

public add<G>(GS)
{

}
Calling: obj.add<int>(10)
obj.add<string>(satya)


Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between inproc and outproc?

653


Explain the difference between or and orelse?

529


Explain the difference between sql invalidation and sql notification.

551


What do you mean by View State and what is its role?

524


Can a master page have more than one contentplaceholder?

501






Why and where this web.config file is used?

586


What is the full meaning of asp.net?

518


What is the difference between pathparam and queryparam?

566


How many types of validation are there?

514


How can we prevent browser from caching an aspx page?

521


Define asp.net caching?

528


What are cookies in asp.net?

567


Why viewstate is used in asp.net?

503


What are main return types supported in Web API?

737


What is razor? : asp.net mvc

549