BeFriend.Services.SpineClass.GetContactResult C# (CSharp) Method

GetContactResult() public static method

public static GetContactResult ( Contact contact ) : string
contact Windows.ApplicationModel.Contacts.Contact
return string
        public static string GetContactResult(Contact contact)
        {
            var result = new StringBuilder();
            //result.AppendFormat("Display name: {0}", contact.DisplayName);
            //result.AppendLine();

            //foreach (ContactEmail email in contact.Emails)
            //{
            //    result.AppendFormat("Email address ({0}): {1}", email.Kind, email.Address);
            //    result.AppendLine();
            //}

            foreach (ContactPhone phone in contact.Phones)
            {
                //result.AppendFormat("Phone ({0}): {1}", phone.Kind, phone.Number);
                result.AppendFormat("{0}", phone.Number);
                result.AppendLine();
            }

            return result.ToString();
        }