Namespace: System
Int32
Represents a 32-bit signed integer.
Methods (2)
String ToString(String)
Converts the numeric value of this instance to its equivalent string representation, using the specified format.
| Parameter | Description |
|---|---|
| format | A standard or custom numeric format string. |
Returns: The string representation of the value of this instance as specified by format.
bool TryParse(String,Int32@)
Converts the string representation of a number to its 32-bit signed integer equivalent. A return value indicates whether the conversion succeeded.
| Parameter | Description |
|---|---|
| s | A string containing a number to convert. |
| result | When this method returns, contains the 32-bit signed integer value equivalent of the number contained in s, if the conversion succeeded, or zero if the conversion failed. The conversion fails if the s parameter is null or Empty, is not of the correct format, or represents a number less than MinValue or greater than MaxValue. This parameter is passed uninitialized; any value originally supplied in result will be overwritten. |
Returns: true if s was converted successfully; otherwise, false.
Fields & Constants (2)
int MaxValue
Represents the largest possible value of an Int32. This field is constant.
int MinValue
Represents the smallest possible value of Int32. This field is constant.