I have a message where I print out the Name of the Entity and Its Count. I have used StringBuilder class. I have code like this:
message.AppendFormat("Items1: {0}",item1count).AppendLine();
message.AppendFormat("Items2Byb: {0}",item2count).AppendLine();
message.AppendFormat("Items3STCDEE: {0}",item3count).AppendLine();
message.AppendFormat("Items4HTECEEGG: {0}",item4count).AppendLine();
message.AppendFormat("ItemsASSTEC: {0}",item5count).AppendLine();
The result is coming out like this:
Items1: 1
Items2Byb: 3
Items3STCDEE 5
What I want is the proper alignment, no matter what the length of the Item name is:
Items1: 1
Items2Byb: 3
Items3STCDEE 5