Exemple #1
0
        public void AddComment(Comment comment)
        {
            Comments.TryAdd(comment);

            NewCommentReceived?.Invoke(this, comment);
        }
Exemple #2
0
 protected virtual void OnNewCommentReceived(Comment c) => NewCommentReceived?.Invoke(this, new NewCommentReceivedEventArgs {
     Comment = c
 });