internal static MailContactItem FromContactItemInfo(MailContactItem itemInfo) { if (itemInfo != null) { var contact = new MailContactItem { Name = itemInfo.Name, Description = itemInfo.Description, Labels = new ItemList<int>(itemInfo.Labels), Emails = new ItemList<string>(itemInfo.Emails) }; return contact; } return null; }
internal static MailContactItem FromContactItemInfo(MailContactItem itemInfo) { if (itemInfo != null) { var contact = new MailContactItem { Name = itemInfo.Name, Description = itemInfo.Description, Labels = new ItemList <int>(itemInfo.Labels), Emails = new ItemList <string>(itemInfo.Emails) }; return(contact); } return(null); }