Пример #1
0
 internal XamlParseError(XamlErrorSeverity severity, int errorCode, ITextLocation lineInformation, string messageFormat, params string[] parameters)
 {
     this.severity        = severity;
     this.errorCode       = errorCode;
     this.lineInformation = lineInformation != null ? lineInformation : (ITextLocation) new TextLocation(0, 0);
     this.messageFormat   = messageFormat;
     this.parameters      = new List <string>((IEnumerable <string>)parameters);
 }
Пример #2
0
 public static XamlParseError NewParseError(XamlErrorSeverity severity, XamlErrorCode errorCode, ITextLocation lineInformation, string messageFormat, params string[] parameters)
 {
     return(new XamlParseError(severity, (int)errorCode, lineInformation, messageFormat, parameters));
 }