public static void copy_wo_data(citydata scr, ref citydata dst) { dst.cityid = scr.cityid; dst.cityname = scr.cityname; dst.statename = scr.statename; dst.citytimediff = scr.citytimediff; dst.citytimeoffset = scr.citytimeoffset; dst.cityDSTmode = scr.cityDSTmode; dst.countryname = scr.countryname; dst.DSTEN = scr.DSTEN; dst.DSTvalid = scr.DSTvalid; dst.cur_con = scr.cur_con; dst.cur_country = scr.cur_country; dst.cur_state = scr.cur_state; dst.cur_city = scr.cur_city; dst.NextDSTtime = scr.NextDSTtime; }
protected citydata(citydata right) { this.cityid = right.cityid; this.cityname = right.cityname; this.statename = right.statename; this.citytimediff = right.citytimediff; this.citytimeoffset = right.citytimeoffset; this.cityDSTmode = right.cityDSTmode; this.countryname = right.countryname; this.DSTEN = right.DSTEN; this.DSTvalid = right.DSTvalid; this.cur_con = right.cur_con; this.cur_country = right.cur_country; this.cur_state = right.cur_state; this.cur_city = right.cur_city; this.NextDSTtime = right.NextDSTtime; for (int index = 0; index < this.weatherbank.Length; ++index) { this.weatherbank[index] = new weathernode(); } }