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