示例#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));
 }