Пример #1
0
        public static Unit Create(UnitView v)
        {
            var d = new UnitData();

            Copy.Members(v, d);
            return(new Unit(d));
        }
        public static Unit Create(UnitView v)
        {
            var o = new Unit();

            Copy.Members(v, o.Data);

            return(o);
        }
Пример #3
0
        public static UnitView Create(Unit o)
        {
            var v = new UnitView();

            Copy.Members(o.Data, v);

            return(v);
        }
Пример #4
0
        public static Unit Create(UnitView v) // тут как в MeasureViewFactory, все стало поменьше
        {
            var o = new Unit();

            Copy.Members(v, o.Data);

            return(o);
        }
Пример #5
0
        public static UnitView Create(Unit o)
        {
            var v = new UnitView();

            if (!(o?.Data is null))
            {
                Copy.Members(o.Data, v);
            }
            return(v);
        }