remove starting 0 in astring C#

58

remove starting 0 in astring C# -

String str ="000234".TrimStart(new Char[] { '0' } );

Console.WriteLine(str);

 //Output: 234

Comments

Submit
0 Comments