Ejemplo n.º 1
0
 public static CatalogScope Create(Catalog catalog, ScopeLevels level, CatalogScope parent = null)
 {
     return(new CatalogScope {
         _catalog = catalog,
         _level = level,
         _parent = parent,
     });
 }
Ejemplo n.º 2
0
        public static Catalog Create()
        {
            var cat = new Catalog {
                SystemPattern   = _systempattern,
                PersistPattern  = _persistpattern,
                DatabasePattern = _databasepattern,
                SourcePath      = "",
            };

            cat.PersistentVars = CatalogScope.Create(cat, ScopeLevels.Persistent, null);
            cat.GlobalVars     = CatalogScope.Create(cat, ScopeLevels.Global, cat.PersistentVars);
            return(cat);
        }