예제 #1
0
 public static ImplementsDerivedModel CreateFullDerivedModel()
 {
     var model = new ImplementsDerivedModel();
       model.AnotherInt = 10;
       model.AnotherString = "nothing";
       model.AnotherList = new List<string>();
       model.AnotherList.Add("firstString");
       model.AnotherList.Add("secondString");
       model.AnotherDouble = 5.5;
       model.AnotherClass = new DummyClass();
       model.AnotherClass.DummyString = "justAnotherString";
       return model;
 }
        public static ImplementsDerivedModel CreateFullDerivedModel()
        {
            var model = new ImplementsDerivedModel();

            model.AnotherInt    = 10;
            model.AnotherString = "nothing";
            model.AnotherList   = new List <string>();
            model.AnotherList.Add("firstString");
            model.AnotherList.Add("secondString");
            model.AnotherDouble            = 5.5;
            model.AnotherClass             = new DummyClass();
            model.AnotherClass.DummyString = "justAnotherString";
            return(model);
        }