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

C# IXmlLineInfo类代码示例

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

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



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

示例1: ConfigError

 private void ConfigError (IXmlLineInfo lineInfo, string message, params object [] args)
 {
     Console.Error.WriteLine ("Analyzer Configuration Error: {0} ({1}:{2},{3})",
         String.Format (message, args), configuration_path,
         lineInfo.LineNumber, lineInfo.LinePosition);
     throw new Exception ();
 }
开发者ID:lothrop,项目名称:vernacular,代码行数:7,代码来源:AnalyzerConfiguration.cs


示例2: XmlException

 internal XmlException(string res, string[] args,  IXmlLineInfo lineInfo) {
     HResult = HResults.Xml;
     this.res = res;
     this.args = args;
     this.lineNumber = null == lineInfo ? 0 : lineInfo.LineNumber;
     this.linePosition = null == lineInfo ? 0 : lineInfo.LinePosition;
 }
开发者ID:ArildF,项目名称:masters,代码行数:7,代码来源:xmlexception.cs


示例3: XPathDocumentBuilder

 public XPathDocumentBuilder(XPathDocument doc, IXmlLineInfo lineInfo, string baseUri, XPathDocument.LoadFlags flags)
 {
     this.nodePageFact.Init(0x100);
     this.nmspPageFact.Init(0x10);
     this.stkNmsp = new Stack<XPathNodeRef>();
     this.Initialize(doc, lineInfo, baseUri, flags);
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:7,代码来源:XPathDocumentBuilder.cs


示例4: CreateParseException

      protected virtual Exception CreateParseException(IXmlLineInfo lineInfo, string format, params object[] args) {

         if (lineInfo != null && lineInfo.HasLineInfo())
            return new HttpParseException(String.Format(CultureInfo.InvariantCulture, format, args), null, this.VirtualPath, null, lineInfo.LineNumber);
         else
            return new HttpParseException(String.Format(CultureInfo.InvariantCulture, format, args));
      }
开发者ID:nuxleus,项目名称:Nuxleus,代码行数:7,代码来源:BaseParser.cs


示例5: SetIdentityField

		// Return false if there is already the same key.
		public bool SetIdentityField (object identity, bool isXsiNil, XsdAnySimpleType type, int depth, IXmlLineInfo li)
		{
			FieldFoundDepth = depth;
			Identity = identity;
			IsXsiNil = isXsiNil;
			FieldFound |= isXsiNil;
			FieldType = type;
			Consuming = false;
			Consumed = true;
			if (li != null && li.HasLineInfo ()) {
				FieldHasLineInfo = true;
				FieldLineNumber = li.LineNumber;
				FieldLinePosition = li.LinePosition;
			}

			if (!(this.entry.OwnerSequence.SourceSchemaIdentity is XmlSchemaKeyref)) {
				for (int i = 0; i < entry.OwnerSequence.FinishedEntries.Count; i++) {
					XsdKeyEntry other = (XsdKeyEntry) entry.OwnerSequence.FinishedEntries [i];
					if (this.entry.CompareIdentity (other))
						return false;
				}
			}

			return true;
		}
开发者ID:nobled,项目名称:mono,代码行数:26,代码来源:XsdIdentityState.cs


示例6: NvdlReader

		private NvdlReader (XmlReader reader)
		{
			// FIXME: use .rnc validation.
			this.reader = reader;
			this.lineInfo = reader as IXmlLineInfo;
			reader.MoveToContent ();
		}
开发者ID:KonajuGames,项目名称:SharpLang,代码行数:7,代码来源:NvdlReader.cs


示例7: ParseColor

        static Color? ParseColor(IXmlLineInfo lineInfo, string color)
        {
            if (string.IsNullOrEmpty(color))
                return null;

            return ColorConverter.ConvertFromString(color);
        }
开发者ID:chartly,项目名称:flood,代码行数:7,代码来源:V2Loader.cs


示例8: Error

 static Exception Error(IXmlLineInfo lineInfo, string message)
 {
     if (lineInfo != null)
         return new HighlightingDefinitionInvalidException(HighlightingLoader.FormatExceptionMessage(message, lineInfo.LineNumber, lineInfo.LinePosition));
     else
         return new HighlightingDefinitionInvalidException(message);
 }
开发者ID:chartly,项目名称:flood,代码行数:7,代码来源:V2Loader.cs


示例9: NvdlFilteredXmlReader

		public NvdlFilteredXmlReader (XmlReader reader,
			NvdlValidateInterp validate)
		{
			this.reader = reader;
			reader_as_line_info = reader as IXmlLineInfo;
			this.validate = validate;
		}
开发者ID:KonajuGames,项目名称:SharpLang,代码行数:7,代码来源:NvdlFilteredXmlReader.cs


示例10: SetLineInfo

 private void SetLineInfo(IXmlLineInfo lineInfo, SearchResult searchResult)
 {
     if(lineInfo.HasLineInfo())
     {
         searchResult.LineNumber = lineInfo.LineNumber;
         searchResult.LinePosition = lineInfo.LinePosition;
     }
 }
开发者ID:uli-weltersbach,项目名称:XPathInformation,代码行数:8,代码来源:SearchResultFactory.cs


示例11: WrapMessage

        private static string WrapMessage(IXmlLineInfo lineInfo, string message, Exception innerException)
        {
            if (innerException == null)
                return string.Format("{0} (line: {1}, col: {2})", message, lineInfo.LineNumber, lineInfo.LinePosition);

            return string.Format("{0} (line: {1}, col: {2}): [{3}] {4}", message, lineInfo.LineNumber,
                                 lineInfo.LinePosition, innerException.GetType().Name, innerException.Message);
        }
开发者ID:ppittle,项目名称:LBi.LostDoc,代码行数:8,代码来源:TemplateException.cs


示例12: Attribute

        public Attribute(string name, IXmlLineInfo lineInfo)
        {
            this.name = name;

            _hasLineInfo = lineInfo.HasLineInfo();
            _lineNumber = lineInfo.LineNumber;
            _linePosition = lineInfo.LinePosition;
        }
开发者ID:datanowllc,项目名称:twintsam,代码行数:8,代码来源:Attribute.cs


示例13: XsdCachingReader

//Constructor
        internal XsdCachingReader(XmlReader reader, IXmlLineInfo lineInfo, CachingEventHandler handlerMethod) {
            this.coreReader = reader;
            this.lineInfo = lineInfo;
            this.cacheHandler = handlerMethod;
            attributeEvents = new ValidatingReaderNodeData[InitialAttributeCount];
            contentEvents = new ValidatingReaderNodeData[InitialContentCount];
            Init();
        }
开发者ID:gbarnett,项目名称:shared-source-cli-2.0,代码行数:9,代码来源:xsdcachingreader.cs


示例14: XsdCachingReader

 internal XsdCachingReader(XmlReader reader, IXmlLineInfo lineInfo, CachingEventHandler handlerMethod)
 {
     this.coreReader = reader;
     this.lineInfo = lineInfo;
     this.cacheHandler = handlerMethod;
     this.attributeEvents = new ValidatingReaderNodeData[8];
     this.contentEvents = new ValidatingReaderNodeData[4];
     this.Init();
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:9,代码来源:XsdCachingReader.cs


示例15: Load

		/// <summary>
		/// Loads the XML document from the specified <see cref="XmlReader"/>.
		/// </summary>
		public override void Load(XmlReader reader)
		{
			lineInfo = reader as IXmlLineInfo;
			try {
				base.Load(reader);
			} finally {
				lineInfo = null;
			}
		}
开发者ID:modulexcite,项目名称:WpfDesigner,代码行数:12,代码来源:PositionXmlDocument.cs


示例16: XmlReaderProxy

        public XmlReaderProxy(XmlReader xmlreader, Uri baseUri, IXmlLineInfo lineNumberService)
        {
            Debug.Assert(xmlreader != null, "xmlreader != null");
            Debug.Assert(baseUri != null, "baseUri != null");

            _proxy = xmlreader;
            _baseUri = baseUri;
            _lineNumberService = lineNumberService;
        }
开发者ID:Cireson,项目名称:EntityFramework6,代码行数:9,代码来源:XmlReaderProxy.cs


示例17: BuildMessage

		static string BuildMessage (string message, IXmlLineInfo li, string sourceUri)
		{
			if (li != null && li.HasLineInfo ()) {
				message = String.Format ("{0}. Location: {1} ({2}, {3}).", message, sourceUri, li.LineNumber, li.LinePosition);
			}
			else if (sourceUri != null)
				message = String.Format ("{0}. Location: {1}", message, sourceUri);
			return message;
		}
开发者ID:Profit0004,项目名称:mono,代码行数:9,代码来源:XmlQueryException.cs


示例18: XPathDocumentBuilder

        /// <summary>
        /// Create a new XPathDocumentBuilder which creates nodes in "doc".
        /// </summary>
        public XPathDocumentBuilder(XPathDocument doc, IXmlLineInfo lineInfo, string baseUri, XPathDocument.LoadFlags flags) {
            // Allocate the initial node (for non-namespaces) page, and the initial namespace page
            this.nodePageFact.Init(256);
            this.nmspPageFact.Init(16);

            this.stkNmsp = new Stack<XPathNodeRef>();

            Initialize(doc, lineInfo, baseUri, flags);
        }
开发者ID:uQr,项目名称:referencesource,代码行数:12,代码来源:XPathDocumentBuilder.cs


示例19: PositionXmlAttribute

 internal PositionXmlAttribute(string prefix, string localName, string namespaceURI, XmlDocument doc, IXmlLineInfo lineInfo)
     : base(prefix, localName, namespaceURI, doc)
 {
     if (lineInfo != null) {
         this.lineNumber = lineInfo.LineNumber;
         this.linePosition = lineInfo.LinePosition;
         this.hasLineInfo = true;
     }
 }
开发者ID:icsharpcode,项目名称:WpfDesigner,代码行数:9,代码来源:PositionXmlDocument.cs


示例20: Load

        public override void Load(XmlReader reader)
        {
            if (reader is IXmlLineInfo)
                lineInfo = (IXmlLineInfo)reader;

            base.Load(reader);

            lineInfo = null;
        }
开发者ID:jmonasterio,项目名称:xgc3,代码行数:9,代码来源:XmlFileDocument.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# IXmlNamespaceResolver类代码示例发布时间:2022-05-24
下一篇:
C# IXmlDocument类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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