Say a class
Person
+Name: string
+Contacts: List<Person>
I want to be able to check if a person has a contact with a certain name without having to create a dummy Person instance.
person.Contacts.Contains<string>("aPersonName");
This should check all persons in the Contacts list if their Name.Equals("aPersonName"); I see that there is a Contains already available, but I don't know where I should implement it's logic.