Inheritance: AbstractTO
Ejemplo n.º 1
0
 public CityArray(City[] mdoCities)
 {
     if (mdoCities == null || mdoCities.Length == 0)
     {
         count = 0;
         return;
     }
     cities = new CityTO[mdoCities.Length];
     for (int i = 0; i < mdoCities.Length; i++)
     {
         cities[i] = new CityTO(mdoCities[i]);
     }
     count = mdoCities.Length;
 }
Ejemplo n.º 2
0
 public CityArray(City[] mdoCities)
 {
     if (mdoCities == null || mdoCities.Length == 0)
     {
         count = 0;
         return;
     }
     cities = new CityTO[mdoCities.Length];
     for (int i = 0; i < mdoCities.Length; i++)
     {
         cities[i] = new CityTO(mdoCities[i]);
     }
     count = mdoCities.Length;
 }
Ejemplo n.º 3
0
 public CityArray(SortedList lst)
 {
     if (lst == null || lst.Count == 0)
     {
         count = 0;
         return;
     }
     cities = new CityTO[lst.Count];
     IDictionaryEnumerator e = lst.GetEnumerator();
     int i = 0;
     while (e.MoveNext())
     {
         cities[i++] = new CityTO((City)e.Value);
     }
     count = lst.Count;
 }
Ejemplo n.º 4
0
        public CityArray(SortedList lst)
        {
            if (lst == null || lst.Count == 0)
            {
                count = 0;
                return;
            }
            cities = new CityTO[lst.Count];
            IDictionaryEnumerator e = lst.GetEnumerator();
            int i = 0;

            while (e.MoveNext())
            {
                cities[i++] = new CityTO((City)e.Value);
            }
            count = lst.Count;
        }