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

Answer Posted / me

Generics are the type safe data structures that was introduced in .Net 2.0.Following are the benefits of it-

Better Performance: They are better in performance as boxing/unboxing is not required.thus reducing execution cost and time.

Type safety : it gives error at compile time if a data type mismatch is found.

Code reusablity : Same code is reused for various data tyoe like int,string etc.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between asp.net and asp.net mvc? : Asp.Net MVC

485


What is query string with example?

519


About CLR, reflection and assemblies?

1539


How do you change the session time-out value?

580


Does web services support data reader like pom project?

526






How can you implement encapsulation in asp.net?

11301


What is asp.net and its advantages?

547


How do I use response redirect?

558


What are app services?

528


Who can consume WebAPI?

587


What are the three parts of an http response?

529


What is the use of data set in asp.net?

486


What are session state modes in asp.net?

550


Why would anyone need to implement their own hashtable or linked list?

2437


Explain managed code an un-managed code.

592