ToInt32

        public static int ToInt32(this string value)
        {
            int number;

            Int32.TryParse(value, out number);

            return number;
        }
Example:
string number = "1";
int converted = number.ToInt32();

Description

Convert string to int32

Details

Double click on the code to select all.

 

;