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

how to implement some securty aspect in our application i.e 1.cookie poisioning. 2.data encryption. 3.forcefull browsing 4.sql/code injection 5.securing web app by using web services ........my question is how to implement these thing in our application is this done by hard coding or by help of some tool

1870


What are session state modes? List some of the important session state modes of asp.net.

717


What are html helpers in asp.net?

772


What is work flow gen? how can it will work with .Net?

2763


What is difference between web config and global asax?

640


How do u declare static variable and how it is declared and what is its lifetime?

747


What is an axd file?

791


Describe a Windows Service and its lifecycle ?

843


How to add DateTime Control in normal DataGrid Server Control?

841


Explain Session state management options in ASP.NET.

830


Define web services in asp.net.

754


What role “#&&” plays in a querysting?

771


WSDL means?

897


Explain how is a property designated as read-only?

767


What are the uses of list view control in Asp.net?

801