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); }
public static XamlParseError NewParseError(XamlErrorSeverity severity, XamlErrorCode errorCode, ITextLocation lineInformation, string messageFormat, params string[] parameters) { return(new XamlParseError(severity, (int)errorCode, lineInformation, messageFormat, parameters)); }