Пример #1
0
        public IndexModel(MyInterface _i)
        {
            _interface = _i;
            List <Type> types = new List <Type> {
                typeof(int), typeof(string)
            };                                                                 //определение типов свойств

            _i.SetTypes(types);

            _obj          = new MyObject();
            vm            = new ViewModel();
            vm.Name       = _obj.GetType().Name;
            vm.Properties = _interface.MyGetProperties(_obj);
        }