protected string PrefixTitlesDelimited(string delimiter, string appendIfNotEmpty) { string ret = PrefixTitles == null ? "" : PrefixTitles.ToString("D" + delimiter, null); //return delimited string if (!string.IsNullOrEmpty(ret)) { ret += appendIfNotEmpty; } return(ret); }
public override string GetStepParameters() { var parameters = new List <string>(); parameters.Add(Identification != null ? Identification.ToStepValue() : "$"); parameters.Add(FamilyName != null ? FamilyName.ToStepValue() : "$"); parameters.Add(GivenName != null ? GivenName.ToStepValue() : "$"); parameters.Add(MiddleNames != null ? MiddleNames.ToStepValue() : "$"); parameters.Add(PrefixTitles != null ? PrefixTitles.ToStepValue() : "$"); parameters.Add(SuffixTitles != null ? SuffixTitles.ToStepValue() : "$"); parameters.Add(Roles != null ? Roles.ToStepValue() : "$"); parameters.Add(Addresses != null ? Addresses.ToStepValue() : "$"); return(string.Join(", ", parameters.ToArray())); }