コード例 #1
0
 private static string ExtractMessage(ResultIssue issue)
 {
     return(issue == null || !issue.IsMessage
 ? string.Empty
 : issue.Message);
 }
コード例 #2
0
 /// <summary>
 /// Creates a new result with a single issue.
 /// </summary>
 protected internal Result(ResultIssue issue)
     : this(new[] { issue })
 {
 }
コード例 #3
0
 public ResultException(ResultIssue issue, Exception inner) : this(ExtractMessage(issue), inner)
 {
     Level = issue == null ? ResultIssueLevels.Unknown : issue.Level;
 }