HalfTypeTryParse Method (String, HalfType) |
Converts the string representation of a number to its System.Half equivalent.
A return value indicates whether the conversion succeeded or failed.
Namespace:
NeoAxis
Assembly:
NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax public static bool TryParse(
string value,
out HalfType result
)
Parameters
- value
- Type: SystemString
The string representation of the number to convert. - result
- Type: NeoAxisHalfType
When this method returns, contains the System.Half number that is equivalent
to the numeric value contained in value, if the conversion succeeded, or is zero
if the conversion failed. The conversion fails if the s parameter is null,
is not a number in a valid format, or represents a number less than System.Half.MinValue
or greater than System.Half.MaxValue. This parameter is passed uninitialized.
Return Value
Type:
Booleantrue if s was converted successfully; otherwise, false.
See Also