public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("ProtectionScenario="); sb.Append(_protectionScenario.ToString()); sb.Append("; PolicyEnforcement="); sb.Append(_policyEnforcement.ToString()); sb.Append("; CustomChannelBinding="); if (_customChannelBinding == null) { sb.Append("<null>"); } else { sb.Append(_customChannelBinding.ToString()); } sb.Append("; ServiceNames="); if (_customServiceNames == null) { sb.Append("<null>"); } else { bool first = true; foreach (string serviceName in _customServiceNames) { if (first) { first = false; } else { sb.Append(", "); } sb.Append(serviceName); } } return(sb.ToString()); }