Inheritance: AbstractTO
示例#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;
 }
示例#2
0
文件: CityArray.cs 项目: OSEHRA/mdws
 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;
 }
示例#3
0
文件: CityArray.cs 项目: OSEHRA/mdws
 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;
 }
示例#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;
        }