/// <summary> /// Returns a string that represents the current <see cref="ClientName"/>. /// </summary> public override string ToString() { if (String.IsNullOrEmpty(this.Key)) { return(this.ProviderName); } else { return(String.Format("{0}/{1}", ClientName.Escape(this.Key), ClientName.Escape(this.ProviderName))); } }