System::Int16-klass

Int16 class

Innehåller metoder för att arbeta med 16-bitars heltal.

class Int16

Metoder

MetodBeskrivning
static Parse(const String&)Konverterar den angivna strängen som innehåller talets teckenrepresentation till motsvarande 16-bitars signerade heltal.
static Parse(const String&, const SharedPtr<IFormatProvider>&)Konverterar den angivna strängen som innehåller talets teckenrepresentation till motsvarande 16-bitars signerade heltal med den medföljande formateringsinformationen.
static Parse(const String&, const SharedPtr<Globalization::CultureInfo>&)
static Parse(const String&, const SharedPtr<Globalization::NumberFormatInfo>&)
static Parse(const String&, std::nullptr_t)
static Parse(const String&, Globalization::NumberStyles, const SharedPtr<IFormatProvider>&)Konverterar den angivna strängen som innehåller talets teckenrepresentation till motsvarande 16-bitars signerade heltal med den medföljande formateringsinformationen och talstil.
static Parse(const String&, Globalization::NumberStyles, const SharedPtr<Globalization::CultureInfo>&)
static Parse(const String&, Globalization::NumberStyles, const SharedPtr<Globalization::NumberFormatInfo>&)
static Parse(const String&, Globalization::NumberStyles, std::nullptr_t)
static TryParse(const String&, int16_t&)Konverterar den angivna strängen som innehåller talets teckenrepresentation till motsvarande 16-bitars signerade heltal.
static TryParse(const String&, Globalization::NumberStyles, const SharedPtr<IFormatProvider>&, int16_t&)Konverterar den angivna strängen som innehåller talets teckenrepresentation till motsvarande 16-bitars signerade heltal med den medföljande formateringsinformationen och talstil.
static TryParse(const String&, Globalization::NumberStyles, const SharedPtr<Globalization::CultureInfo>&, int16_t&)
static TryParse(const String&, Globalization::NumberStyles, const SharedPtr<Globalization::NumberFormatInfo>&, int16_t&)
static TryParse(const String&, Globalization::NumberStyles, std::nullptr_t, int16_t&)

Fält

FältBeskrivning
static constexpr MaxValueStörsta möjliga värde.
static constexpr MinValueMinsta möjliga värde.

Se även