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

Why we use asp.net for website development?

501


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

559


What is the difference between trace and debug in asp.net?

629


What are the cookies types in asp.net?

568


What is globalization and localization in asp net?

504






Which property needs to be set for script manager control to extend the time before throwing time out expection if no response is received from the server?

545


what are the events raised in asp.net page life cycle?in which stage view state can be loaded?

561


What is a viewbag?

516


What is a page life cycle? What are the events in a page life cycle?

495


How does session work in asp net?

565


Explain the difference between inline and code behind - which is best in?

511


Difference between response.redirect and server.transfer?

559


Tell me the code snippet to show how we can return 404 errors from HttpError?

795


How can we update records in gridview?Is there any appropriate code for it?

1610


What is variable and constant in .net programming language?

401