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 a global postback url?

594


What is asp.net web pages?

616


Where would you use an ihttpmodule, and what are the limitations if any?

618


In which event of the page life cycle, is the viewstate available?

607


How would you implement inheritance using c#?

664






What are session and cookies?

626


Do you know about caching with the datasource controls?

563


List the types of authentication supported by asp.net?

611


What is client side state management?

593


If you are using components in your application, how can you handle exceptions raised in a component?

2171


What is the use of ASP.NET routing?

642


What is asp net objects?

612


If 200 is for all successful operation then why do we have 201 response codes?

618


How can we access static variable?

721


Explain the use of resource manager class in .net.

599