System::Int16::TryParse method

Int16::TryParse(const String&, int16_t&) method

Converts the specified string containing the string representation of a number to the equivalent 16-bit signed integer.

static bool System::Int16::TryParse(const String &value, int16_t &result)
ParameterTypeDescription
valueconst String&The string to convert.
resultint16_t&The reference to a 16-bit signed integer variable where the result of the conversion is put.

ReturnValue

True if the conversion succeeded, otherwise - false.

See Also

Int16::TryParse(const String&, Globalization::NumberStyles, const SharedPtr<IFormatProvider>&, int16_t&) method

Converts the specified string containing the string representation of a number to the equivalent 16-bit signed integer using the provided formatting information and number style.

static bool System::Int16::TryParse(const String &value, Globalization::NumberStyles styles, const SharedPtr<IFormatProvider> &provider, int16_t &result)
ParameterTypeDescription
valueconst String&The string to convert.
stylesGlobalization::NumberStylesA bitwise combination of values of NumberStyles enum that specifies the permitted style of the string representation of a number.
providerconst SharedPtr<IFormatProvider>&A pointer to an object that contains the string format information.
resultint16_t&The reference to a 16-bit signed integer variable where the result of the conversion is put.

ReturnValue

True if the conversion succeeded, otherwise - false.

See Also

Int16::TryParse(const String&, Globalization::NumberStyles, const SharedPtr<Globalization::CultureInfo>&, int16_t&) method

static bool System::Int16::TryParse(const String &value, Globalization::NumberStyles styles, const SharedPtr<Globalization::CultureInfo> &culture, int16_t &result)

See Also

Int16::TryParse(const String&, Globalization::NumberStyles, const SharedPtr<Globalization::NumberFormatInfo>&, int16_t&) method

static bool System::Int16::TryParse(const String &value, Globalization::NumberStyles styles, const SharedPtr<Globalization::NumberFormatInfo> &nfi, int16_t &result)

See Also

Int16::TryParse(const String&, Globalization::NumberStyles, std::nullptr_t, int16_t&) method

static bool System::Int16::TryParse(const String &value, Globalization::NumberStyles styles, std::nullptr_t, int16_t &result)

See Also