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