string class : ParseToInt() method

Description

Converts the string to the instance of the int type.

Syntax

stringInstance.ParseToInt()

Arguments

None

Return value

ClassDescription
intAn instance of the int type that is converted.

Sample code

//anyString is a instance of string type.

int converted = anyString.ParseToInt();

Notes

It's a wrapper of the System.Int32.Parse(String).

Links for reference

Copyright © Rice All rights reserved.