当前位置: 首页>>代码示例>>C#>>正文


C# XmlNameTable类代码示例

本文整理汇总了C#中XmlNameTable的典型用法代码示例。如果您正苦于以下问题:C# XmlNameTable类的具体用法?C# XmlNameTable怎么用?C# XmlNameTable使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


XmlNameTable类属于命名空间,在下文中一共展示了XmlNameTable类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: XNodeReader

 internal XNodeReader(XNode node, XmlNameTable nameTable, ReaderOptions options)
 {
     _source = node;
     _root = node;
     _nameTable = nameTable != null ? nameTable : CreateNameTable();
     _omitDuplicateNamespaces = (options & ReaderOptions.OmitDuplicateNamespaces) != 0 ? true : false;
 }
开发者ID:svcgany1,项目名称:corefx,代码行数:7,代码来源:XNodeReader.cs

示例2: Preprocessor

 public Preprocessor(XmlNameTable nameTable, SchemaNames schemaNames, ValidationEventHandler eventHandler, XmlSchemaCompilationSettings compilationSettings)
     : base(nameTable, schemaNames, eventHandler, compilationSettings)
 {
     _referenceNamespaces = new Hashtable();
     _processedExternals = new Hashtable();
     _lockList = new SortedList();
 }
开发者ID:Corillian,项目名称:corefx,代码行数:7,代码来源:Preprocessor.cs

示例3: NameCache

	// Constructor.
	public NameCache(XmlNameTable nt) : base(128)  // avoid expanding of hashtable
			{
				nameTable = nt;

				// only NameTable is guaranted to use String.Empty
				emptyString = nt.Add(String.Empty);
			}
开发者ID:jjenki11,项目名称:blaze-chem-rendering,代码行数:8,代码来源:NameCache.cs

示例4: XPathDocument

        /// <summary>
        /// Create a new empty document.  All names should be atomized using "nameTable".
        /// </summary>
        internal XPathDocument(XmlNameTable nameTable)
        {
            if (nameTable == null)
                throw new ArgumentNullException(nameof(nameTable));

            _nameTable = nameTable;
        }
开发者ID:Corillian,项目名称:corefx,代码行数:10,代码来源:XPathDocument.cs

示例5: this

	public XmlParserInput
				(TextReader reader,
				 XmlNameTable nameTable,
				 ErrorHandler error)
			: this(reader, nameTable, null, error)
			{
			}
开发者ID:jjenki11,项目名称:blaze-chem-rendering,代码行数:7,代码来源:XmlParserInput.cs

示例6: this

            : this(nameTable, schemaNames, eventHandler, new XmlSchemaCompilationSettings()) {} //Use the default for XmlSchemaCollection

        public BaseProcessor(XmlNameTable nameTable, SchemaNames schemaNames, ValidationEventHandler eventHandler, XmlSchemaCompilationSettings compilationSettings) {
            Debug.Assert(nameTable != null);
            this.nameTable = nameTable;
            this.schemaNames = schemaNames;
            this.eventHandler = eventHandler;
            this.compilationSettings = compilationSettings;
            NsXml = nameTable.Add(XmlReservedNs.NsXml);
        }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:10,代码来源:BaseProcessor.cs

示例7: Parser

 public Parser(SchemaType schemaType, XmlNameTable nameTable, SchemaNames schemaNames, ValidationEventHandler eventHandler) {
     this.schemaType = schemaType;
     this.nameTable = nameTable;
     this.schemaNames = schemaNames;
     this.eventHandler = eventHandler;
     this.xmlResolver = System.Xml.XmlConfiguration.XmlReaderSection.CreateDefaultResolver();
     processMarkup = true;
     dummyDocument = new XmlDocument();
 }
开发者ID:uQr,项目名称:referencesource,代码行数:9,代码来源:Parser.cs

示例8: Parser

 public Parser(SchemaType schemaType, XmlNameTable nameTable, SchemaNames schemaNames, ValidationEventHandler eventHandler) {
     this.schemaType = schemaType;
     this.nameTable = nameTable;
     this.schemaNames = schemaNames;
     this.eventHandler = eventHandler;
     this.xmlResolver = new XmlUrlResolver();
     processMarkup = true;
     dummyDocument = new XmlDocument();
 }
开发者ID:gbarnett,项目名称:shared-source-cli-2.0,代码行数:9,代码来源:parser.cs

示例9: XmlSchemaSet

		public XmlSchemaSet (XmlNameTable nameTable)
		{
			if (nameTable == null)
				throw new ArgumentNullException ("nameTable");

			this.nameTable = nameTable;
			schemas = new ArrayList ();
			CompilationId = Guid.NewGuid ();
		}
开发者ID:nobled,项目名称:mono,代码行数:9,代码来源:XmlSchemaSet.cs

示例10: Parser

 public Parser(SchemaType schemaType, XmlNameTable nameTable, SchemaNames schemaNames, ValidationEventHandler eventHandler)
 {
     _schemaType = schemaType;
     _nameTable = nameTable;
     _schemaNames = schemaNames;
     _eventHandler = eventHandler;
     _xmlResolver = null;
     _processMarkup = true;
     _dummyDocument = new XmlDocument();
 }
开发者ID:dotnet,项目名称:corefx,代码行数:10,代码来源:Parser.cs

示例11: XmlSchemaCollection

 /// <include file='doc\XmlSchemaCollection.uex' path='docs/doc[@for="XmlSchemaCollection.XmlSchemaCollection1"]/*' />
 /// <devdoc>
 ///    <para>Construct a new empty schema collection with associated XmlNameTable.
 ///       The XmlNameTable is used when loading schemas</para>
 /// </devdoc>
 public XmlSchemaCollection(XmlNameTable nametable) {
     if (nametable == null) {
         throw new ArgumentNullException("nametable");
     }
     nameTable = nametable;
     collection = Hashtable.Synchronized(new Hashtable());
     xmlResolver = new XmlUrlResolver();
     isThreadSafe = true;
     if (isThreadSafe) {
         wLock = new ReaderWriterLock();
     }
 }
开发者ID:gbarnett,项目名称:shared-source-cli-2.0,代码行数:17,代码来源:xmlschemacollection.cs

示例12: XmlSchemaCollection

 /// <include file='doc\XmlSchemaCollection.uex' path='docs/doc[@for="XmlSchemaCollection.XmlSchemaCollection1"]/*' />
 /// <devdoc>
 ///    <para>Construct a new empty schema collection with associated XmlNameTable.
 ///       The XmlNameTable is used when loading schemas</para>
 /// </devdoc>
 public XmlSchemaCollection(XmlNameTable nametable) {
     if (nametable == null) {
         throw new ArgumentNullException("nametable");
     }
     nameTable = nametable;
     collection = Hashtable.Synchronized(new Hashtable());
     xmlResolver = System.Xml.XmlConfiguration.XmlReaderSection.CreateDefaultResolver();
     isThreadSafe = true;
     if (isThreadSafe) {
         wLock = new ReaderWriterLock();
     }
 }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:17,代码来源:XmlSchemaCollection.cs

示例13: base

	// Constructor.
	protected XmlParserInputBase
				(XmlNameTable nameTable,
				 EOFHandler eof,
				 ErrorHandler error)
			: base(error)
			{
				this.nameTable = nameTable;
				this.eofHandler = eof;
				this.currChar = '\0';
				this.peekChar = '\0';
				this.logger = new LogManager();
			}
开发者ID:jjenki11,项目名称:blaze-chem-rendering,代码行数:13,代码来源:XmlParserInputBase.cs

示例14: base

	public XmlParserInput
				(TextReader reader,
				 XmlNameTable nameTable,
				 EOFHandler eof,
				 ErrorHandler error)
			: base(nameTable, eof, error)
			{
				this.lineNumber = 1;
				this.linePosition = 1;
				this.bufferPos = 0;
				this.bufferLen = 0;
				this.buffer = new char[BUFSIZE];
				this.reader = reader;
				this.extraPeekChar = '\0';
			}
开发者ID:jjenki11,项目名称:blaze-chem-rendering,代码行数:15,代码来源:XmlParserInput.cs

示例15: XmlSchemaCollection

 /// <include file='doc\XmlSchemaCollection.uex' path='docs/doc[@for="XmlSchemaCollection.XmlSchemaCollection1"]/*' />
 /// <devdoc>
 ///    <para>Construct a new empty schema collection with associated XmlNameTable.
 ///       The XmlNameTable is used when loading schemas</para>
 /// </devdoc>
 public XmlSchemaCollection(XmlNameTable nametable)
 {
     if (nametable == null)
     {
         throw new ArgumentNullException(nameof(nametable));
     }
     _nameTable = nametable;
     _collection = Hashtable.Synchronized(new Hashtable());
     _xmlResolver = System.Xml.XmlConfiguration.XmlReaderSection.CreateDefaultResolver();
     _isThreadSafe = true;
     if (_isThreadSafe)
     {
         _wLock = new object();
     }
 }
开发者ID:geoffkizer,项目名称:corefx,代码行数:20,代码来源:XmlSchemaCollection.cs


注:本文中的XmlNameTable类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。