Example #1
0
        /// <summary>Creates new instance of the X2O config, adding the default elements processors and type resolvers</summary>
        public static X2OConfig                                                         DefaultConfig()
        {
            var cfg = new X2OConfig(GetDefaultElementsProcessors());

            cfg.m_TypeResolvers.AddRange(cfg.GetDefaultTypeResolvers());
            return(cfg);
        }
Example #2
0
        /// <summary>Creates new instance of the X2O config, with adding the default type resolvers</summary>
        public static X2OConfig                                                         WithDefaultTypeResolvers()
        {
            var cfg = new X2OConfig(null);

            cfg.m_TypeResolvers.AddRange(cfg.GetDefaultTypeResolvers());
            return(cfg);
        }