Method ToInt32
ToInt32()
Converts the value represented by this instance to a 32-bit sighed
integer.
Declaration
public override int ToInt32()
Returns
Type | Description |
---|---|
Int32 | A 32-bit signed integer equivalent to the number represented by the string represented by this instance. |
Overrides
Remarks
This method performs the same conversion as
ToInt32(String).
Exceptions
Type | Condition |
---|---|
FormatException | The string represented by this instance does not represent an integer. |
OverflowException | If the string represented by this instance represents value less than MinValue or greater than MaxValue |