Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var book = new AddressBook (this) {
- PreferContactAggregation = true
- };
- foreach (Contact c in book.Where (c => c.LastName == "Smith")) {
- print (c.DisplayName);
- foreach (Phone p in c.Phones)
- print ("Phone: " + p.Number);
- foreach (Email e in c.Emails)
- print ("Email: " + e.Address);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement