Пример #1
0
        public void ConfigurationXml()
        {
            PrefInteger prefInteger = new PrefInteger("integer_pref", 2);
            PrefDouble prefDouble = new PrefDouble("integer_pref", 4);

            Pref pref = new Pref("only_pref");

            List<Pref> prefList = new List<Pref> {pref, prefInteger, prefDouble};

            Configuration c = new Configuration(prefInteger, prefList);
            SimplTypesScope simplTypesScope = SimplTypesScope.Get("configuration", typeof(Configuration),
                typeof(PrefInteger), typeof(PrefDouble), typeof(Pref));

            TestMethods.TestSimplObject(c, simplTypesScope, Format.Xml);
        }
Пример #2
0
 public Configuration(Pref p, List<Pref> ps )
 {
     pref = p;
     prefs = ps;
 }
Пример #3
0
 public Configuration(Pref p, List <Pref> ps)
 {
     pref  = p;
     prefs = ps;
 }