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