Beispiel #1
0
 private void ErrorInternal(
     ValidationResultCollection results, 
     string errorName, 
     ValidationResultInfoType type, 
     int line,
     int col,
     params object[] objects)
 {
     results.Passed = false;
     ValidationErrorWithLookup error = new ValidationErrorWithLookup(ResourceManager, errorName, type, line, col);
     error.Message = string.Format(error.Message, objects);
     if (error.Resolutions != null)
     {
         // Format each resolution as well.
         for (int i = 0; i < error.Resolutions.Length; i++)
             error.Resolutions[i] = string.Format(error.Resolutions[i], objects);
     }
     results.Add(error);
 }
 public ValidationError(IResourceManager mgr, string name, string msg, ValidationResultInfoType type, bool isFatal, int line, int col, string[] resolutions)
     : this(mgr, name, msg, type, isFatal, line, col)
 {
     Resolutions = resolutions;
 }
 public ValidationError(IResourceManager mgr, string name, string msg, ValidationResultInfoType type, bool isFatal, int line, int col)
     : this(mgr, name, msg, type, isFatal, line)
 {
     Col = col;
 }
 public ValidationError(IResourceManager mgr, string name, string msg, ValidationResultInfoType type, bool isFatal, int line)
     : this(mgr, name, msg, type, isFatal)
 {
     Line = line;
 }
 public ValidationError(IResourceManager mgr, string name, string msg, ValidationResultInfoType type, bool isFatal)
     : this(mgr, name, msg, type)
 {
     IsFatal = isFatal;
 }
 public ValidationError(IResourceManager mgr, string name, string msg, ValidationResultInfoType type)
     : this(mgr, name, msg)
 {
     Type = type;
 }
 public ValidationErrorWithLookup(IResourceManager mgr, string name, ValidationResultInfoType type, int line, int col)
     : this(mgr, name, type, line)
 {
     Col = col;
 }
 public ValidationErrorWithLookup(IResourceManager mgr, string name, ValidationResultInfoType type, int line)
     : this(mgr, name, type)
 {
     Line = line;
 }
 public ValidationErrorWithLookup(IResourceManager mgr, string name, ValidationResultInfoType type)
     : this(mgr, name)
 {
     Type = type;
 }