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
- Author: Túlio Henrique Thomé
- Submitted on: 17-5-2011 20:50:32
- Language: C#
- Type: System.String
- Views: 3507
Double click on the code to select all.