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 the difference between Classic ASP and ASP.Net?

776


What is the difference between “Web.config” and “Machine.Config”?

889


What is the use of worker process in asp.net?

723


Explain code snippet to register exception filters from controller?

817


What is the function used for removing an event listener?

764


What is comparevalidator?

713


Who can consume WebAPI?

761


How can i explain my project during interview?many time i expalain my project but they did't accept? please explain me.

5299


What is session handling in a webfarm, how it can work with its limits?

851


What is the difference between user control an custom control?

838


What is a session government?

678


What is difference between session and cookies in asp net?

734


What is difference between ispostback and autopostback in asp net?

713


How do I send an email message from my ASP.NET page?

736


What is asp net objects?

717