// Is friend public bool IsContact(Person P ) { string patter = P.Lastname + "#" + P.Firstname; foreach( string s in _friendList.Keys ) { if( patter == s ) { return true; } foreach() } }
// Delete contact public void DeleteContact( Person P ) { string patter = P.Lastname + "#" + P.Firstname; _friendList.Remove(patter); }
// Add contact public void AddContact( Person P ) { string patter = P.Lastname + "#" + P.Firstname; _friendList.Add(patter, P); }