System::Int32 klass

Int32 class

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

class Int32

Metoder

MetodBeskrivning
static Parse(const String&)Konverterar den angivna strängen som innehåller talets textrepresentation till motsvarande 32-bitars signerade heltal.
static Parse(const String&, const SharedPtr<IFormatProvider>&)Konverterar den angivna strängen som innehåller talets textrepresentation till motsvarande 32-bitars signerade heltal med den angivna 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 textrepresentation till motsvarande 32-bitars signerade heltal med den angivna 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 Parse(const ReadOnlySpan<char16_t>&)
static Parse(const ReadOnlySpan<char16_t>&, std::nullptr_t)
static Parse(const ReadOnlySpan<char16_t>&, Globalization::NumberStyles, const SharedPtr<IFormatProvider>&)
static TryParse(const String&, int32_t&)Konverterar den angivna strängen som innehåller talets textrepresentation till motsvarande 32-bitars signerade heltal.
static TryParse(const String&, Globalization::NumberStyles, const SharedPtr<IFormatProvider>&, int32_t&)Konverterar den angivna strängen som innehåller talets textrepresentation till motsvarande 32-bitars signerade heltal med den angivna formateringsinformationen och talstil.
static TryParse(const String&, Globalization::NumberStyles, const SharedPtr<Globalization::CultureInfo>&, int32_t&)
static TryParse(const String&, Globalization::NumberStyles, const SharedPtr<Globalization::NumberFormatInfo>&, int32_t&)
static TryParse(const String&, Globalization::NumberStyles, std::nullptr_t, int32_t&)

Fält

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

Se även