parsing string to int csharp 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");