public override void ApplyOn(ContactRecord contact) { string[] words = contact.Street.Split(' '); StringBuilder stringBuilder = new StringBuilder(); foreach (string word in words) { stringBuilder.Append(Expand(word) + ' '); } contact.Street = stringBuilder.ToString().TrimEnd();; }
public override void ApplyOn(ContactRecord contact) { string[] o = new string[3]; o[0] = contact.City; o[1] = contact.Province; o[2] = contact.Country; string[] r = CorrectCityAddress(o); contact.City = r[0]; contact.Province = r[1]; contact.Country = r[2]; }
public abstract void ApplyOn(ContactRecord contact);
public override void ApplyOn(ContactRecord contact) { contact.City = CapitalizeWord(contact.City); }
public override void ApplyOn(ContactRecord contact) { contact.Street = CapitalizeWord(contact.Street); }
public override void ApplyOn(ContactRecord contact) { contact.FirstName = CapitalizeString(contact.FirstName); contact.LastName = CapitalizeString(contact.LastName); }
public override void ApplyOn(ContactRecord contact) { contact.PostalCode = FormatPostalCode(contact.PostalCode); }
public override void ApplyOn(ContactRecord contact) { contact.Street = RemoveRedundantComma(contact.Street); }