Beispiel #1
0
 public Comment Add(Comment comment)
 {
     comment.ID           = nextID++;
     comments[comment.ID] = comment;
     return(comment);
 }
 public void AddCom(Comment c) => ComList.Add(c);
Beispiel #3
0
 public bool TryGet(int id, out Comment comment)
 {
     return(comments.TryGetValue(id, out comment));
 }