示例#1
0
 XamlException LineInfo(XamlException e)
 {
     if (_xmlLineInfo != null)
     {
         e.SetLineInfo(_xmlLineInfo.LineNumber, _xmlLineInfo.LinePosition);
     }
     return(e);
 }
 XamlException IAddLineInfo.WithLineInfo(XamlException ex)
 {
     if (this.LineNumber > 0)
     {
         ex.SetLineInfo(this.LineNumber, this.LinePosition);
     }
     return(ex);
 }
示例#3
0
 XamlException IAddLineInfo.WithLineInfo(XamlException ex)
 {
     if (EndInstanceLineNumber > 0)
     {
         ex.SetLineInfo(EndInstanceLineNumber, EndInstanceLinePosition);
     }
     return(ex);
 }
示例#4
0
 private XamlException LineInfo(XamlException e)
 {
     if (this._xmlLineInfo != null)
     {
         e.SetLineInfo(this._xmlLineInfo.LineNumber, this._xmlLineInfo.LinePosition);
     }
     return(e);
 }
 // Method to easily add the lineinfo to a Xaml Exception.
 public XamlException WithLineInfo(XamlException ex)
 {
     ex.SetLineInfo(LineNumber, LinePosition);
     return(ex);
 }
示例#6
0
 protected override XamlException WithLineInfo(XamlException ex)
 {
     ex.SetLineInfo(source.Line, source.Column);
     return(ex);
 }
示例#7
0
 XamlException WithLineInfo(XamlException ex)
 {
     ex.SetLineInfo(Line, Column);
     return(ex);
 }