public static Unit Create(UnitView v) //v-view { var d = new UnitData(); Copy.Members(v, d); return(new Unit(d)); }
public static Unit Create(UnitView v) //v-view { var o = new Unit(); Copy.Members(v, o.Data); return(o); }
public static UnitView Create(Unit o) //o-object { var v = new UnitView(); Copy.Members(o.Data, v); return(v); }
public static UnitView Create(Unit o) //o-object { var v = new UnitView(); if (!(o?.Data is null)) { Copy.Members(o.Data, v); } return(v); }