public static IMessageBox Warning([NotNull] this IMessageBox definition, [CanBeNull] IResult result) { if (definition == null) { throw new ArgumentNullException(nameof(definition)); } return(definition.Warning(result?.ErrorDescription)); }
public static IMessageBox Warning([NotNull] this IMessageBox definition, [NotNull] Exception exception) { if (definition == null) { throw new ArgumentNullException(nameof(definition)); } if (exception == null) { throw new ArgumentNullException(nameof(exception)); } return(definition.Warning(exception.GetOriginalMessage())); }