ltrim string in c# code example
Example 1: convert string to number C#
int x = 0;
Int32.TryParse(TextBoxD1.Text, out x);
Example 2: reverse a string in c#
public void ReverseString(char[] s) {
for(int i = 0; i < s.Length / 2; i++) {
char temp = s[i];
s[i] = s[s.Length - 1 - i];
s[s.Length - 1 - i] = temp;
}
}