Terrifnsul, string? Okato, string? Oktmo, string? Updatedate, string? Housenum, string? Eststatus, string? Buildnum, string? Strucnum, string? Strstatus, string? Houseid, string? Houseguid, string? Aoguid, string? Startdate, string? Enddate, string? Statstatus, string? Normdoc , string? Counter, string? Cadnum, string? Divtype)
{
this.POSTALCODE = Postalcode;
this.IFNSFL = Ifnsfl;
this.TERRIFNSFL = Terrifnsfl;
this.IFNSUL = Ifnsul;
this.TERRIFNSUL = Terrifnsul;
this.OKATO = Okato;
this.OKTMO = Oktmo;
this.UPDATEDATE = Updatedate;
this.HOUSENUM = Housenum;
this.ESTSTATUS = Eststatus;
this.BUILDNUM = Buildnum;
this.STRUCNUM = Strucnum;
this.STRSTATUS = Strstatus;
this.HOUSEID = Houseid;
this.HOUSEGUID = Houseguid;
this.AOGUID = Aoguid;
this.STARTDATE = Startdate;
this.ENDDATE = Enddate;
this.STATSTATUS = Statstatus;
this.NORMDOC = Normdoc ;
this.COUNTER = Counter;
this.CADNUM = Cadnum;
this.DIVTYPE = Divtype;
}
}
нахера тут вообще конструктор? просто в свойства созданого объекта назначай эти значения
ты можешь так создавать объект с нужными полями: var house = new House() { POSTALCODE = Postalcode, IFNSFL = Ifnsfl, // и т.д. остальные свойства }
Обсуждают сегодня