formatting a string in c#
I have a string which i have initialized to empty and building the string
as seen below i have also got the preferred output i would like, whats the
best mathod of doing this as this would be sent as an email. tak into
account company names will be off different length.
string being buit
emailBody += s + " Success" + Environment.NewLine;
Ouput of String
CompanyName Success
CompanyName Success
CompanyName Success
CompanyName Success
CompanyName Success
CompanyName Success
CompanyName Success
Would like output like below
_______________________________________
CompanyName | Success
CompanyName | Success
CompanyName | Success
CompanyName | Success
CompanyName | Success
CompanyName | Success
CompanyName | Success
No comments:
Post a Comment