quote:
Originally posted by ddunk
code:
var Contacts = Messenger.MyContacts;
var Contact = Contacts.GetContact("ddunk@is.a.ponynugget.net");
Debug.Trace(Contact.Name);
You could just write that into a single line as well, though you won't have the Contacts and Contact variables to refer back to later.
code:
Debug.Trace(Messenger.MyContacts.GetContact("email@address.com").Name)