from string to in in C# code example Example: C# convert string to int int x = Convert.ToInt32("1234");