コード例 #1
0
 public MostWantedEnumerator(MostWanted <T2> cola)
 {
     this.identidadAnterior = -1;
     this.mayorPeso         = -1;
     this.cola = cola;
     this.anteriorMayorPeso = int.MaxValue;
     this.identidades       = new List <int>();
 }
コード例 #2
0
        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);
            }
        }
コード例 #3
0
 public MostWantedEnumerator(MostWanted <T2> cola)
 {
     this.Reset();
     this.cola = cola;
     this.anteriorMayorPeso = int.MaxValue;
 }