Try my app Expense Manager @ google play and amazon store.

Sunday, July 1, 2012

Generics in C# .NET


What are generics in C#.NET?


Generic types to maximize code reuse, type safety, and performance. They can be used to create collection classes. Generic collection classes in the System.Collections.Generic namespace should be used instead of classes such as ArrayList in the System.Collections namespace.


or


Generics allow you to define type-safe data structures, without committing to actual data types. It allows writing less but more effective code. Generic provides flexibility and power but the developer needs to be responsible while using it.

No comments:

Post a Comment

Follow by Email

Google+ Badge