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