public MostWantedEnumerator(MostWanted <T2> cola) { this.identidadAnterior = -1; this.mayorPeso = -1; this.cola = cola; this.anteriorMayorPeso = int.MaxValue; this.identidades = new List <int>(); }
static void Main(string[] args) { MostWanted <int> my = new MostWanted <int>(); my.Add(1); my.Add(2); my.Add(4); my.Add(7); Console.WriteLine(my.Count); my.Contains(4); my.Remove(2); Console.WriteLine(my.Count); foreach (var el in my) { Console.WriteLine(el); } }
public MostWantedEnumerator(MostWanted <T2> cola) { this.Reset(); this.cola = cola; this.anteriorMayorPeso = int.MaxValue; }