Home > Software > .NET > ASP.NET
Interview Questions   Tutorials   Discussions   

ASP.NET - What are generics? Why it is used? Architecture of ASP.NET?




252
views
asked mar October 4, 2014 04:25 AM  

What are generics? Why it is used? Architecture of ASP.NET?


           

1 Answers



 
answered By siddhant   0  

Generics allow you to delay the specification of the data type of programming elements in a class or a method, until it is actually used in the program. In other words, generics allow you to write a class or method that can work with any data type.

Using generics is a technique that enriches your programs in the following ways:

  • It helps you to maximize code reuse, type safety, and performance.
  • You can create generic collection classes. The .NET Framework class library contains several new generic collection classes in the System.Collections.Generic namespace. You may use these generic collection classes instead of the collection classes in the System.Collections namespace.
  • You can create your own generic interfaces, classes, methods, events and delegates.
flag   
   add comment

Your answer

Join with account you already have

FF

Preview

 Write A Tutorials
Online-Classroom Classes
www.writeabc.com


  1 person following this question

  Question tags

asp.net × 1

Asked 2 years and 3 months ago ago
Number of Views -252
Number of Answers -1
Last updated
3 years and 2 months ago ago

Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert