System.Runtime.Serialization.Plists.BinaryPlistArray.ToString C# (CSharp) Method

ToString() public method

Returns the string representation of this instance.
public ToString ( ) : string
return string
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder("[");
            int objectRef;

            for (int i = 0; i < this.ObjectReference.Count; i++)
            {
                if (i > 0)
                {
                    sb.Append(",");
                }

                objectRef = this.ObjectReference[i];

                if (this.ObjectTable.Count > objectRef && (this.ObjectTable[objectRef] == null || this.ObjectTable[objectRef].Value != this))
                {
                    sb.Append(this.ObjectReference[objectRef]);
                }
                else
                {
                    sb.Append("*" + objectRef);
                }
            }

            return sb.ToString() + "]";
        }