ToString() public method

public ToString ( ) : string
return string
Example #1
0
        ///
        /// <summery>
        ///  Returns a string containing the information for this DataStructure
        ///  such as its type and value of its elements.
        /// </summery>
        ///
        public override string ToString()
        {
            if (key == null)
            {
                if (!String.IsNullOrEmpty(textView))
                {
                    if (textView.StartsWith("ID:"))
                    {
                        key = textView;
                    }
                    else
                    {
                        key = "ID:" + textView;
                    }
                }
                else
                {
                    key = producerId.ToString() + ":" + producerSequenceId + ":" + brokerSequenceId;
                }
            }

            return(key);
        }