• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Xml.XmlBufferReader类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



XmlBufferReader类属于System.Xml命名空间,在下文中一共展示了XmlBufferReader类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: XmlDeclarationNode

 public XmlDeclarationNode(XmlBufferReader bufferReader)
     : base(XmlNodeType.XmlDeclaration,
            new PrefixHandle(bufferReader),
            new StringHandle(bufferReader),
            new ValueHandle(bufferReader),
            XmlNodeFlags.CanGetAttribute,
            ReadState.Interactive,
            null,
            0)
 {
 }
开发者ID:noahfalk,项目名称:corefx,代码行数:11,代码来源:XmlBaseReader.cs


示例17: Equals2

 bool Equals2(int offset2, int length2, XmlBufferReader bufferReader2)
 {
     StringHandleType type = this.type;
     if (type == StringHandleType.Dictionary)
         return bufferReader2.Equals2(offset2, length2, bufferReader.GetDictionaryString(this.key).Value);
     if (type == StringHandleType.UTF8)
         return bufferReader.Equals2(this.offset, this.length, bufferReader2, offset2, length2);
     Fx.Assert(type == StringHandleType.EscapedUTF8 || type == StringHandleType.ConstString, "");
     return GetString() == bufferReader.GetString(offset2, length2);
 }
开发者ID:krytht,项目名称:DotNetReferenceSource,代码行数:10,代码来源:StringHandle.cs


示例18: XmlClosedNode

 public XmlClosedNode(XmlBufferReader bufferReader)
     : base(XmlNodeType.None,
            new PrefixHandle(bufferReader),
            new StringHandle(bufferReader),
            new ValueHandle(bufferReader),
            XmlNodeFlags.None,
            ReadState.Closed,
            null,
            0)
 {
 }
开发者ID:noahfalk,项目名称:corefx,代码行数:11,代码来源:XmlBaseReader.cs


示例19: StringHandle

 public StringHandle(XmlBufferReader bufferReader)
 {
     this.bufferReader = bufferReader;
     SetValue(0, 0);
 }
开发者ID:krytht,项目名称:DotNetReferenceSource,代码行数:5,代码来源:StringHandle.cs


示例20: Namespace

 public Namespace(XmlBufferReader bufferReader)
 {
     _prefix = new PrefixHandle(bufferReader);
     _uri = new StringHandle(bufferReader);
     _outerUri = null;
     _uriString = null;
 }
开发者ID:noahfalk,项目名称:corefx,代码行数:7,代码来源:XmlBaseReader.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Xml.XmlComment类代码示例发布时间:2022-05-26
下一篇:
C# Xml.XmlBoundElement类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap