For example is it possible to do
WriteLine("Statement : {0:c}", 23455);
WriteLine("Statement : {0:n}", 23455);
To get the output in the format $23,455
you would use {0:c0}
, the final 0
tells how many decimal places to show, it defaults to {0:c2}
if you don't specify a number.