Esempio n. 1
0
        public override string ToString()
        {
            StringBuilder builder = new StringBuilder();

            builder.Append("------------------------------------------------\n");
            builder.Append(string.Format("Slot Id: 0x{0} ({1})\n", slotId.ToString("x8"), slotType.ToString()));
            builder.Append(string.Format("Visible: {0}\n", slotState.HasFlag(SlotStates.Visible)));

            if (owners.Count > 0)
            {
                builder.Append("Owners: ");
                foreach (uint owner in owners)
                {
                    builder.Append(string.Format("0x{0} ", owner.ToString("x8")));
                }
                builder.Append("\n");
            }
            else
            {
                builder.Append("Owners: <none>\n");
            }

            if (connectingSlots.Count > 0)
            {
                builder.Append("Connecting slots: ");
                foreach (uint slot in connectingSlots)
                {
                    builder.Append(string.Format("0x{0} ", slot.ToString("x8")));
                }
                builder.Append("\n");
            }
            else
            {
                builder.Append("Connecting slots: <none>\n");
            }

            return(builder.ToString());
        }