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() + "]";
}