Пример #1
0
 public bool Equals(InfoMessage other) => string.Equals(Message, other.Message) && Duration.Equals(other.Duration) && Equals(Brush, other.Brush);
Пример #2
0
 public bool HasShownMessage(InfoMessage infoMessage)
 {
     return(PrevShownMessages.Any(m => string.Equals(m.Message, infoMessage.Message, StringComparison.Ordinal)));
 }