To download this file, please login or click here to register
Description:
This snippet in two files shows how to implement .Net Generics For collection class of ourcustom class. Also this implements IEnumerable Interface for getting iterators
Usage
CPollCollection c= new CPollCollection();
c.Add(new CPoll(Val1,Val2))
c.Add(new CPoll(Val1,Val2))
c.Add(new CPoll(Val1,Val2))
//Iterating over the COllection
foreach (CPoll p in c) {
//SOME FUNCTIONALITY HERE
}