Generic classes in C#


Generic classes allows us to implement the functionality as like normal classes,but the object types will be passed to the methods at the point of use. examples of Generic classes are List , Dictionary etc.
Syntax :
List<double> list = new List<double>(); //we have to specify the object type at the declaration

No comments:

Post a Comment