HalfTypeTryParse(String, HalfType) Method |
Converts the string representation of a number to its System.Half equivalent.
A return value indicates whether the conversion succeeded or failed.
Namespace: NeoAxisAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntaxpublic static bool TryParse(
string value,
out HalfType result
)
Parameters
- value String
- The string representation of the number to convert.
- result HalfType
-
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
Booleantrue if s was converted successfully; otherwise, false.
See Also