I am using TrimStart(‘0’) to clear the leading zero.
For example :
string value= "00999";
value = value.TrimStart('0');
It is working great.
But now what happen is I don’t want to trim value that is zero, for example 00.
For example, the return result is 00 :
string value= "00";
value = value.TrimStart('0');
Thank you.
Just add this line: