Microsoft.Azure.Amqp.Framing.Attach.ToString C# (CSharp) Method

ToString() public method

public ToString ( ) : string
return string
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder("attach(");
            int count = 0;
            this.AddFieldToString(this.LinkName != null, sb, "name", this.LinkName, ref count);
            this.AddFieldToString(this.Handle != null, sb, "handle", this.Handle, ref count);
            this.AddFieldToString(this.Role != null, sb, "role", this.Role, ref count);
            this.AddFieldToString(this.SndSettleMode != null, sb, "snd-settle-mode", this.SndSettleMode, ref count);
            this.AddFieldToString(this.RcvSettleMode != null, sb, "rcv-settle-mode", this.RcvSettleMode, ref count);
            this.AddFieldToString(this.Source != null, sb, "source", this.Source, ref count);
            this.AddFieldToString(this.Target != null, sb, "target", this.Target, ref count);
            this.AddFieldToString(this.IncompleteUnsettled != null, sb, "incomplete-unsettled", this.IncompleteUnsettled, ref count);
            this.AddFieldToString(this.InitialDeliveryCount != null, sb, "initial-delivery-count", this.InitialDeliveryCount, ref count);
            this.AddFieldToString(this.MaxMessageSize != null, sb, "max-message-size", this.MaxMessageSize, ref count);
            this.AddFieldToString(this.OfferedCapabilities != null, sb, "offered-capabilities", this.OfferedCapabilities, ref count);
            this.AddFieldToString(this.DesiredCapabilities != null, sb, "desired-capabilities", this.DesiredCapabilities, ref count);
            this.AddFieldToString(this.Properties != null, sb, "properties", this.Properties, ref count);
            sb.Append(')');
            return sb.ToString();
        }