Exemplo n.º 1
0
 public bool Likes(Person other)
 {
     return Friends.Contains(other);
 }
Exemplo n.º 2
0
 public void SetLikes(Person other)
 {
     Friends.Add(other);
 }
Exemplo n.º 3
0
 public int ScoreIfPersonSwappedWith(Person other)
 {
     return Neighbours.Values.Count(neighbour => other.Friends.Contains(neighbour.Person));
 }