from string to int in c# code example
Example 1: string to int c#
int x = Int32.Parse("1234");
Example 2: how to convert string to int in c#
string a = ("2");
int b = Convert.ToInt16(a)
int x = Int32.Parse("1234");
string a = ("2");
int b = Convert.ToInt16(a)