當前位置: 首頁>>代碼示例>>C#>>正文


C# Xml.XmlBufferReader類代碼示例

本文整理匯總了C#中System.Xml.XmlBufferReader的典型用法代碼示例。如果您正苦於以下問題:C# XmlBufferReader類的具體用法?C# XmlBufferReader怎麽用?C# XmlBufferReader使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


XmlBufferReader類屬於System.Xml命名空間,在下文中一共展示了XmlBufferReader類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: XmlBaseReader

 protected XmlBaseReader()
 {
     _bufferReader = new XmlBufferReader(this);
     _nsMgr = new NamespaceManager(_bufferReader);
     _quotas = XmlDictionaryReaderQuotas.Max;
     _rootElementNode = new XmlElementNode(_bufferReader);
     _atomicTextNode = new XmlAtomicTextNode(_bufferReader);
     _node = s_closedNode;
 }
開發者ID:noahfalk,項目名稱:corefx,代碼行數:9,代碼來源:XmlBaseReader.cs

示例2: XmlBaseReader

 protected XmlBaseReader()
 {
     this.bufferReader = new XmlBufferReader(this);
     this.nsMgr = new NamespaceManager(bufferReader);
     this.quotas = new XmlDictionaryReaderQuotas();
     this.rootElementNode = new XmlElementNode(bufferReader);
     this.atomicTextNode = new XmlAtomicTextNode(bufferReader);
     this.node = closedNode;
 }
開發者ID:nlh774,項目名稱:DotNetReferenceSource,代碼行數:9,代碼來源:XmlBaseReader.cs

示例3: Equals2

        private bool Equals2(int key2, XmlBufferReader bufferReader2)
        {
            switch (this.type)
            {
                case StringHandleType.Dictionary:
                    return this.bufferReader.Equals2(this.key, key2, bufferReader2);

                case StringHandleType.UTF8:
                    return this.bufferReader.Equals2(this.offset, this.length, bufferReader2.GetDictionaryString(key2).Value);
            }
            return (this.GetString() == this.bufferReader.GetDictionaryString(key2).Value);
        }
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:12,代碼來源:StringHandle.cs

示例4: XmlAttributeNode

 public XmlAttributeNode(XmlBufferReader bufferReader)
     : this(new PrefixHandle(bufferReader), new StringHandle(bufferReader), new ValueHandle(bufferReader))
 {
 }
開發者ID:noahfalk,項目名稱:corefx,代碼行數:4,代碼來源:XmlBaseReader.cs

示例5: XmlElementNode

 public XmlElementNode(XmlBufferReader bufferReader)
     : this(new PrefixHandle(bufferReader),
            new StringHandle(bufferReader),
            new ValueHandle(bufferReader))
 {
 }
開發者ID:noahfalk,項目名稱:corefx,代碼行數:6,代碼來源:XmlBaseReader.cs

示例6: NamespaceManager

 public NamespaceManager(XmlBufferReader bufferReader)
 {
     _bufferReader = bufferReader;
     _shortPrefixUri = new Namespace[(int)PrefixHandleType.Max];
     _shortPrefixUri[(int)PrefixHandleType.Empty] = s_emptyNamespace;
     _namespaces = null;
     _nsCount = 0;
     _attributes = null;
     _attributeCount = 0;
     _space = XmlSpace.None;
     _lang = string.Empty;
     _depth = 0;
 }
開發者ID:noahfalk,項目名稱:corefx,代碼行數:13,代碼來源:XmlBaseReader.cs

示例7: XmlCommentNode

 public XmlCommentNode(XmlBufferReader bufferReader)
     : base(XmlNodeType.Comment,
            new PrefixHandle(bufferReader),
            new StringHandle(bufferReader),
            new ValueHandle(bufferReader),
            XmlNodeFlags.HasValue,
            ReadState.Interactive,
            null,
            0)
 {
 }
開發者ID:noahfalk,項目名稱:corefx,代碼行數:11,代碼來源:XmlBaseReader.cs

示例8: XmlCDataNode

 public XmlCDataNode(XmlBufferReader bufferReader)
     : base(XmlNodeType.CDATA,
            new PrefixHandle(bufferReader),
            new StringHandle(bufferReader),
            new ValueHandle(bufferReader),
            XmlNodeFlags.HasValue | XmlNodeFlags.HasContent,
            ReadState.Interactive,
            null,
            0)
 {
 }
開發者ID:noahfalk,項目名稱:corefx,代碼行數:11,代碼來源:XmlBaseReader.cs

示例9: PrefixHandle

 public PrefixHandle(XmlBufferReader bufferReader)
 {
     this.bufferReader = bufferReader;
 }
開發者ID:iskiselev,項目名稱:JSIL.NetFramework,代碼行數:4,代碼來源:PrefixHandle.cs

示例10: Equals2

 private bool Equals2(int offset2, int length2, XmlBufferReader bufferReader2)
 {
     StringHandleType type = _type;
     if (type == StringHandleType.Dictionary)
         return bufferReader2.Equals2(offset2, length2, _bufferReader.GetDictionaryString(_key).Value);
     if (type == StringHandleType.UTF8)
         return _bufferReader.Equals2(_offset, _length, bufferReader2, offset2, length2);
     DiagnosticUtility.DebugAssert(type == StringHandleType.EscapedUTF8 || type == StringHandleType.ConstString, "");
     return GetString() == _bufferReader.GetString(offset2, length2);
 }
開發者ID:noahfalk,項目名稱:corefx,代碼行數:10,代碼來源:StringHandle.cs

示例11: Namespace

 public Namespace(XmlBufferReader bufferReader)
 {
     this.prefix = new PrefixHandle(bufferReader);
     this.uri = new StringHandle(bufferReader);
     this.outerUri = null;
     this.uriString = null;
 }
開發者ID:nlh774,項目名稱:DotNetReferenceSource,代碼行數:7,代碼來源:XmlBaseReader.cs

示例12: NamespaceManager

 public NamespaceManager(XmlBufferReader bufferReader)
 {
     this.bufferReader = bufferReader;
     this.shortPrefixUri = new Namespace[(int)PrefixHandleType.Max];
     this.shortPrefixUri[(int)PrefixHandleType.Empty] = emptyNamespace;
     this.namespaces = null;
     this.nsCount = 0;
     this.attributes = null;
     this.attributeCount = 0;
     this.space = XmlSpace.None;
     this.lang = string.Empty;
     this.depth = 0;
 }
開發者ID:nlh774,項目名稱:DotNetReferenceSource,代碼行數:13,代碼來源:XmlBaseReader.cs

示例13: XmlAtomicTextNode

 public XmlAtomicTextNode(XmlBufferReader bufferReader)
     : base(XmlNodeType.Text,
            new PrefixHandle(bufferReader),
            new StringHandle(bufferReader),
            new ValueHandle(bufferReader),
            XmlNodeFlags.HasValue | XmlNodeFlags.AtomicValue | XmlNodeFlags.SkipValue | XmlNodeFlags.HasContent,
            ReadState.Interactive,
            null,
            0)
 {
 }
開發者ID:noahfalk,項目名稱:corefx,代碼行數:11,代碼來源:XmlBaseReader.cs

示例14: Equals2

 public bool Equals2(int key1, int key2, XmlBufferReader bufferReader2)
 {
     // If the keys aren't from the same dictionary, they still might be the same
     if (key1 == key2)
         return true;
     else
         return GetDictionaryString(key1).Value == bufferReader2.GetDictionaryString(key2).Value;
 }
開發者ID:iskiselev,項目名稱:JSIL.NetFramework,代碼行數:8,代碼來源:XmlBufferReader.cs

示例15: XmlWhitespaceTextNode

 public XmlWhitespaceTextNode(XmlBufferReader bufferReader)
     : base(XmlNodeType.Whitespace,
            new PrefixHandle(bufferReader),
            new StringHandle(bufferReader),
            new ValueHandle(bufferReader),
            XmlNodeFlags.HasValue,
            ReadState.Interactive,
            null,
            0)
 {
 }
開發者ID:noahfalk,項目名稱:corefx,代碼行數:11,代碼來源:XmlBaseReader.cs


注:本文中的System.Xml.XmlBufferReader類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。