public override string ToString() { StringBuilder builder = new StringBuilder(); builder.Append(Title.ReplaceQuotes()); builder.Append(" "); builder.Append(FirstName.ReplaceQuotes()); if (!String.IsNullOrEmpty(MiddleName.Trim())) { builder.Append(" "); builder.Append(MiddleName.ReplaceQuotes()); } builder.Append(" "); builder.Append(LastName.ReplaceQuotes()); builder.Append("\r\n"); if (!String.IsNullOrEmpty(AddressLine1.Trim())) { builder.Append(AddressLine1.ReplaceQuotes()); builder.Append("\r\n"); } if (!String.IsNullOrEmpty(AddressLine2.Trim())) { builder.Append(AddressLine2.ReplaceQuotes()); builder.Append("\r\n"); } if (!String.IsNullOrEmpty(City.Trim())) { builder.Append(City.ReplaceQuotes()); if (!String.IsNullOrEmpty(PinCode)) { builder.Append(" - "); builder.Append(PinCode.ReplaceQuotes()); } builder.Append("\r\n"); } builder.Append("\r\n"); return(builder.ToString()); }