예제 #1
0
        private NamespaceImport GetImport(string ns)
        {
            if (ns.Length == 0)
            {
                return(RootImport);
            }

            if (!(RootImport.FindImport(ns) is NamespaceImport import))
            {
                import = new NamespaceImport(ns, options);
                RootImport.Add(import);
            }

            return(import);
        }
예제 #2
0
 internal ImportCollection(ExpressionBuilderOptions options)
 {
     this.options = options;
     RootImport   = new NamespaceImport("true", this.options);
     ImportOwner(typeof(object));
 }