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