Beispiel #1
0
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder(base.ToString());

            sb.AppendLine();
            sb.AppendLine($"\tCommandCode:\t{CommandCode:x02}");
            sb.AppendLine($"\tIDm:\t\t{string.Join("", IDm.Select(val => $"{val:x02}"))}");
            sb.AppendLine($"\tNumberOfService:{NumberOfService:x02}");
            sb.AppendLine($"\tServiceCodeList:{string.Join("", ServiceCodeList.Select(val => $"{val:x02}"))}");
            sb.AppendLine($"\tNumberOfBlock:\t{NumberOfBlock:x02}");
            sb.AppendLine($"\tBlockList:\t{string.Join("", BlockList.Select(val => $"{val:x02}"))}");
            sb.Append($"\tCommand:\t{string.Join("", Command.Select(val => $"{val:x02}"))}");

            return(sb.ToString());
        }