get int from text c# code example Example: how to convert string to int in c# Click to copystring a = ("2"); int b = Convert.ToInt16(a)