int.Parse : Parse « Data Types « C# / C Sharp






int.Parse

  

using System;
using System.Collections.Generic;
using System.Text;

class Program {
    static void Main(string[] args) {
        int myInt = int.Parse("8");
        Console.WriteLine("-> Value of myInt: {0}", myInt);
    }
}

   
  








Related examples in the same category

1.char.Parse
2.double.Parse
3.bool.Parse
4.parse decimal
5.Determines whether the supplied number is an integer.
6.Determines whether the supplied number is a decimal number.
7.Determines whether the supplied number is of numeric type.
8.Is Valid Integer