What are generics? why it is used?
architecture of ASP.NET?

Answer Posted / jyoti

Generics provide the solution to a limitation in earlier
versions of the common language runtime and the C# language
in which generalization is accomplished by casting types to
and from the universal base type Object. By creating a
generic class, you can create a collection that is type-
safe at compile-time.increases the
performance.

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is asp.net architecture?

617


About CLR, reflection and assemblies?

1636


Whats the difference between registerclientscriptblock, registerclientscriptinclude and registerclientscriptresource?

682


How you will handle session when deploying application in more than a server?

691


Explain what is event bubbling?

672






What are the Types of authentications in IIS

679


When we use cookie less session? Explain its working?

647


Is oauth for authentication or authorization?

669


How many types of validation are there?

617


What is the difference between user control and custom control?

574


Can we have 2 web config files?

621


What is the difference between pathparam and queryparam?

686


Can we store object in viewstate?

630


How to display Alert in ASP.NET

730


Explain what is viewstate?

649