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