how to change string to int c# code example Example 1: string to int c# int x = Int32.Parse("1234"); Example 2: how can convert string to int csharp Int16.Parse("100");