Beispiel #1
0
        public override string ToString()
        {
            var table = new ConsoleTable("Property", "Value");

            switch (_mode)
            {
            case InspectorMode.None:
                break;

            case InspectorMode.Meta:
                table.AddAllRows(Metadata.ToTable().Rows);
                break;

            case InspectorMode.Address:
                table.AddAllRows(Addresses.ToTable().Rows);
                break;

            case InspectorMode.Size:
                table.AddAllRows(Sizes.ToTable().Rows);
                break;

            case InspectorMode.All:
                table.AddAllRows(Metadata.ToTable().Rows);
                table.AddAllRows(Addresses.ToTable().Rows);
                table.AddAllRows(Sizes.ToTable().Rows);
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }



            return(table.ToMarkDownString());
        }