public override string ToString() { if (Subcomponents.Count > 0) { StringBuilder msg = new StringBuilder(); foreach (var sc in Subcomponents) { if (msg.Length == 0) { msg.Append(sc.ToString()); } else { msg.Append("{0}{1}".FormatString(ChoHL7Configuration.Instance.SubcomponentSeparator, sc.ToString())); } } return(msg.ToString()); } else { return(_configuration.Encode(Value.ToNString())); } }
public override string ToString() { return(_configuration.Encode(Value.ToNString())); }