System::Int16::Parse method

Int16::Parse(const String&) method

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

static int16_t System::Int16::Parse(const String &value)
ParameterTypeDescription
valueconst String&The string to convert.

ReturnValue

The 16-bit signed integer equal to the number represented by the specified string.

See Also

Int16::Parse(const String&, const SharedPtr<Globalization::CultureInfo>&) method

static int16_t System::Int16::Parse(const String &value, const SharedPtr<Globalization::CultureInfo> &culture)

See Also

Int16::Parse(const String&, const SharedPtr<Globalization::NumberFormatInfo>&) method

static int16_t System::Int16::Parse(const String &value, const SharedPtr<Globalization::NumberFormatInfo> &nfi)

See Also

Int16::Parse(const String&, const SharedPtr<IFormatProvider>&) method

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

static int16_t System::Int16::Parse(const String &value, const SharedPtr<IFormatProvider> &provider)
ParameterTypeDescription
valueconst String&The string to convert.
providerconst SharedPtr<IFormatProvider>&A pointer to an object that contains the string format information.

ReturnValue

The 16-bit signed integer equal to the number represented by the specified string.

See Also

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

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

See Also

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

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

See Also

Int16::Parse(const String&, Globalization::NumberStyles, const SharedPtr<IFormatProvider>&) 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 int16_t System::Int16::Parse(const String &value, Globalization::NumberStyles styles, const SharedPtr<IFormatProvider> &provider)
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.

ReturnValue

The 16-bit signed integer equal to the number represented by the specified string.

See Also

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

static int16_t System::Int16::Parse(const String &value, Globalization::NumberStyles styles, std::nullptr_t=nullptr)

See Also

Int16::Parse(const String&, std::nullptr_t) method

static int16_t System::Int16::Parse(const String &value, std::nullptr_t)

See Also