Пример #1
0
 public Alert(string text, AlertType type, AlertBehaviour behaviour, Link?link = null)
 {
     Text      = string.IsNullOrWhiteSpace(text) ? throw new StringArgumentNullOrWhiteSpaceException(nameof(text)) : text;
     _type     = type;
     Behaviour = behaviour;
     _link     = link;
 }
Пример #2
0
 public Alert(string text, AlertType type, AlertBehaviour behaviour, Link link = null)
 {
     Text      = text;
     _type     = type;
     Behaviour = behaviour;
     _link     = link;
 }