public static tryParse( readonly value as String, out result as Int ) as Boolean
Parses text into an Int without propagating invalid-value errors.
| Parameter | Description |
|---|---|
value | Numeric text accepted by the Int constructor. |
result | Receives the parsed value on success; remains unchanged on failure. |
true on success; false for malformed or out-of-range text.
result = Int()
assert Int.tryParse("42", result)
assert result == Int(42)
assert not Int.tryParse("invalid", result)
assert result == Int(42)