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