Advertisement
Guest User

Untitled

a guest
Jul 25th, 2014
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. var book = new AddressBook (this) {
  2. PreferContactAggregation = true
  3. };
  4.  
  5. foreach (Contact c in book.Where (c => c.LastName == "Smith")) {
  6. print (c.DisplayName);
  7. foreach (Phone p in c.Phones)
  8. print ("Phone: " + p.Number);
  9. foreach (Email e in c.Emails)
  10. print ("Email: " + e.Address);
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement