cave character string as int c# code example
Example 1: string to int c#
int x = Int32.Parse("1234");
Example 2: convert string to number C#
int x = 0;
Int32.TryParse(TextBoxD1.Text, out x);
int x = Int32.Parse("1234");
int x = 0;
Int32.TryParse(TextBoxD1.Text, out x);