public GeographicLocationArray(GeographicLocation[] mdo)
 {
     if (mdo == null || mdo.Length == 0)
     {
         count = 0;
         return;
     }
     locations = new GeographicLocationTO[mdo.Length];
     for (int i = 0; i < mdo.Length; i++)
     {
         locations[i] = new GeographicLocationTO(mdo[i]);
     }
     count = mdo.Length;
 }
Exemple #2
0
 public GeographicLocationTO(GeographicLocation mdo)
 {
     this.zipcode = mdo.Zipcode;
     this.zipcodeType = mdo.ZipcodeType;
     this.cityName = mdo.CityName;
     this.cityType = mdo.CityType;
     this.countyName = mdo.CountyName;
     this.countyFips = mdo.CountyFips;
     this.stateName = mdo.StateName;
     this.stateAbbreviation = mdo.StateAbbreviation;
     this.stateFips = mdo.StateFips;
     this.msaCode = mdo.MsaCode;
     this.areaCode = mdo.AreaCode;
     this.timeZone = mdo.TimeZone;
     this.utc = mdo.Utc;
     this.daylightSavings = mdo.DaylightSavings;
     this.latitude = mdo.Latitude;
     this.longitude = mdo.Longitude;
 }