UInt16 Struktur

Definisi

Penting

API ini bukan kompatibel CLS.

Mewakili bilangan bulat yang tidak ditandatangani 16-bit.

public value class System::UInt16 : IComparable, IComparable<System::UInt16>, IConvertible, IEquatable<System::UInt16>, IFormattable
public value class System::UInt16 : IComparable, IComparable<System::UInt16>, IConvertible, IEquatable<System::UInt16>, ISpanFormattable
public value class System::UInt16 : IComparable<System::UInt16>, IConvertible, IEquatable<System::UInt16>, IParsable<System::UInt16>, ISpanParsable<System::UInt16>, System::Numerics::IAdditionOperators<System::UInt16, System::UInt16, System::UInt16>, System::Numerics::IAdditiveIdentity<System::UInt16, System::UInt16>, System::Numerics::IBinaryInteger<System::UInt16>, System::Numerics::IBinaryNumber<System::UInt16>, System::Numerics::IBitwiseOperators<System::UInt16, System::UInt16, System::UInt16>, System::Numerics::IComparisonOperators<System::UInt16, System::UInt16, bool>, System::Numerics::IDecrementOperators<System::UInt16>, System::Numerics::IDivisionOperators<System::UInt16, System::UInt16, System::UInt16>, System::Numerics::IEqualityOperators<System::UInt16, System::UInt16, bool>, System::Numerics::IIncrementOperators<System::UInt16>, System::Numerics::IMinMaxValue<System::UInt16>, System::Numerics::IModulusOperators<System::UInt16, System::UInt16, System::UInt16>, System::Numerics::IMultiplicativeIdentity<System::UInt16, System::UInt16>, System::Numerics::IMultiplyOperators<System::UInt16, System::UInt16, System::UInt16>, System::Numerics::INumber<System::UInt16>, System::Numerics::INumberBase<System::UInt16>, System::Numerics::IShiftOperators<System::UInt16, int, System::UInt16>, System::Numerics::ISubtractionOperators<System::UInt16, System::UInt16, System::UInt16>, System::Numerics::IUnaryNegationOperators<System::UInt16, System::UInt16>, System::Numerics::IUnaryPlusOperators<System::UInt16, System::UInt16>, System::Numerics::IUnsignedNumber<System::UInt16>
public value class System::UInt16 : IComparable<System::UInt16>, IConvertible, IEquatable<System::UInt16>, IParsable<System::UInt16>, ISpanParsable<System::UInt16>, IUtf8SpanParsable<System::UInt16>, System::Numerics::IAdditionOperators<System::UInt16, System::UInt16, System::UInt16>, System::Numerics::IAdditiveIdentity<System::UInt16, System::UInt16>, System::Numerics::IBinaryInteger<System::UInt16>, System::Numerics::IBinaryNumber<System::UInt16>, System::Numerics::IBitwiseOperators<System::UInt16, System::UInt16, System::UInt16>, System::Numerics::IComparisonOperators<System::UInt16, System::UInt16, bool>, System::Numerics::IDecrementOperators<System::UInt16>, System::Numerics::IDivisionOperators<System::UInt16, System::UInt16, System::UInt16>, System::Numerics::IEqualityOperators<System::UInt16, System::UInt16, bool>, System::Numerics::IIncrementOperators<System::UInt16>, System::Numerics::IMinMaxValue<System::UInt16>, System::Numerics::IModulusOperators<System::UInt16, System::UInt16, System::UInt16>, System::Numerics::IMultiplicativeIdentity<System::UInt16, System::UInt16>, System::Numerics::IMultiplyOperators<System::UInt16, System::UInt16, System::UInt16>, System::Numerics::INumber<System::UInt16>, System::Numerics::INumberBase<System::UInt16>, System::Numerics::IShiftOperators<System::UInt16, int, System::UInt16>, System::Numerics::ISubtractionOperators<System::UInt16, System::UInt16, System::UInt16>, System::Numerics::IUnaryNegationOperators<System::UInt16, System::UInt16>, System::Numerics::IUnaryPlusOperators<System::UInt16, System::UInt16>, System::Numerics::IUnsignedNumber<System::UInt16>
public value class System::UInt16 : IComparable, IConvertible, IFormattable
public value class System::UInt16 : IComparable, IComparable<System::UInt16>, IEquatable<System::UInt16>, IFormattable
[System.CLSCompliant(false)]
public struct UInt16 : IComparable, IComparable<ushort>, IConvertible, IEquatable<ushort>, IFormattable
[System.CLSCompliant(false)]
public readonly struct UInt16 : IComparable, IComparable<ushort>, IConvertible, IEquatable<ushort>, IFormattable
[System.CLSCompliant(false)]
public readonly struct UInt16 : IComparable, IComparable<ushort>, IConvertible, IEquatable<ushort>, ISpanFormattable
[System.CLSCompliant(false)]
public readonly struct UInt16 : IComparable<ushort>, IConvertible, IEquatable<ushort>, IParsable<ushort>, ISpanParsable<ushort>, System.Numerics.IAdditionOperators<ushort,ushort,ushort>, System.Numerics.IAdditiveIdentity<ushort,ushort>, System.Numerics.IBinaryInteger<ushort>, System.Numerics.IBinaryNumber<ushort>, System.Numerics.IBitwiseOperators<ushort,ushort,ushort>, System.Numerics.IComparisonOperators<ushort,ushort,bool>, System.Numerics.IDecrementOperators<ushort>, System.Numerics.IDivisionOperators<ushort,ushort,ushort>, System.Numerics.IEqualityOperators<ushort,ushort,bool>, System.Numerics.IIncrementOperators<ushort>, System.Numerics.IMinMaxValue<ushort>, System.Numerics.IModulusOperators<ushort,ushort,ushort>, System.Numerics.IMultiplicativeIdentity<ushort,ushort>, System.Numerics.IMultiplyOperators<ushort,ushort,ushort>, System.Numerics.INumber<ushort>, System.Numerics.INumberBase<ushort>, System.Numerics.IShiftOperators<ushort,int,ushort>, System.Numerics.ISubtractionOperators<ushort,ushort,ushort>, System.Numerics.IUnaryNegationOperators<ushort,ushort>, System.Numerics.IUnaryPlusOperators<ushort,ushort>, System.Numerics.IUnsignedNumber<ushort>
[System.CLSCompliant(false)]
public readonly struct UInt16 : IComparable<ushort>, IConvertible, IEquatable<ushort>, IParsable<ushort>, ISpanParsable<ushort>, IUtf8SpanParsable<ushort>, System.Numerics.IAdditionOperators<ushort,ushort,ushort>, System.Numerics.IAdditiveIdentity<ushort,ushort>, System.Numerics.IBinaryInteger<ushort>, System.Numerics.IBinaryNumber<ushort>, System.Numerics.IBitwiseOperators<ushort,ushort,ushort>, System.Numerics.IComparisonOperators<ushort,ushort,bool>, System.Numerics.IDecrementOperators<ushort>, System.Numerics.IDivisionOperators<ushort,ushort,ushort>, System.Numerics.IEqualityOperators<ushort,ushort,bool>, System.Numerics.IIncrementOperators<ushort>, System.Numerics.IMinMaxValue<ushort>, System.Numerics.IModulusOperators<ushort,ushort,ushort>, System.Numerics.IMultiplicativeIdentity<ushort,ushort>, System.Numerics.IMultiplyOperators<ushort,ushort,ushort>, System.Numerics.INumber<ushort>, System.Numerics.INumberBase<ushort>, System.Numerics.IShiftOperators<ushort,int,ushort>, System.Numerics.ISubtractionOperators<ushort,ushort,ushort>, System.Numerics.IUnaryNegationOperators<ushort,ushort>, System.Numerics.IUnaryPlusOperators<ushort,ushort>, System.Numerics.IUnsignedNumber<ushort>
[System.CLSCompliant(false)]
[System.Serializable]
public struct UInt16 : IComparable, IConvertible, IFormattable
[System.CLSCompliant(false)]
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public struct UInt16 : IComparable, IComparable<ushort>, IConvertible, IEquatable<ushort>, IFormattable
[System.CLSCompliant(false)]
public struct UInt16 : IComparable, IComparable<ushort>, IEquatable<ushort>, IFormattable
[<System.CLSCompliant(false)>]
type uint16 = struct
    interface IConvertible
    interface IFormattable
[<System.CLSCompliant(false)>]
type uint16 = struct
    interface IConvertible
    interface ISpanFormattable
    interface IFormattable
[<System.CLSCompliant(false)>]
type uint16 = struct
    interface IConvertible
    interface IFormattable
    interface IParsable<uint16>
    interface ISpanFormattable
    interface ISpanParsable<uint16>
    interface IAdditionOperators<uint16, uint16, uint16>
    interface IAdditiveIdentity<uint16, uint16>
    interface IBinaryInteger<uint16>
    interface IBinaryNumber<uint16>
    interface IBitwiseOperators<uint16, uint16, uint16>
    interface IComparisonOperators<uint16, uint16, bool>
    interface IEqualityOperators<uint16, uint16, bool>
    interface IDecrementOperators<uint16>
    interface IDivisionOperators<uint16, uint16, uint16>
    interface IIncrementOperators<uint16>
    interface IModulusOperators<uint16, uint16, uint16>
    interface IMultiplicativeIdentity<uint16, uint16>
    interface IMultiplyOperators<uint16, uint16, uint16>
    interface INumber<uint16>
    interface INumberBase<uint16>
    interface ISubtractionOperators<uint16, uint16, uint16>
    interface IUnaryNegationOperators<uint16, uint16>
    interface IUnaryPlusOperators<uint16, uint16>
    interface IShiftOperators<uint16, int, uint16>
    interface IMinMaxValue<uint16>
    interface IUnsignedNumber<uint16>
[<System.CLSCompliant(false)>]
type uint16 = struct
    interface IConvertible
    interface IFormattable
    interface IParsable<uint16>
    interface ISpanFormattable
    interface ISpanParsable<uint16>
    interface IAdditionOperators<uint16, uint16, uint16>
    interface IAdditiveIdentity<uint16, uint16>
    interface IBinaryInteger<uint16>
    interface IBinaryNumber<uint16>
    interface IBitwiseOperators<uint16, uint16, uint16>
    interface IComparisonOperators<uint16, uint16, bool>
    interface IEqualityOperators<uint16, uint16, bool>
    interface IDecrementOperators<uint16>
    interface IDivisionOperators<uint16, uint16, uint16>
    interface IIncrementOperators<uint16>
    interface IModulusOperators<uint16, uint16, uint16>
    interface IMultiplicativeIdentity<uint16, uint16>
    interface IMultiplyOperators<uint16, uint16, uint16>
    interface INumber<uint16>
    interface INumberBase<uint16>
    interface ISubtractionOperators<uint16, uint16, uint16>
    interface IUnaryNegationOperators<uint16, uint16>
    interface IUnaryPlusOperators<uint16, uint16>
    interface IUtf8SpanFormattable
    interface IUtf8SpanParsable<uint16>
    interface IShiftOperators<uint16, int, uint16>
    interface IMinMaxValue<uint16>
    interface IUnsignedNumber<uint16>
[<System.CLSCompliant(false)>]
type uint16 = struct
    interface IConvertible
    interface IFormattable
    interface IParsable<uint16>
    interface ISpanFormattable
    interface ISpanParsable<uint16>
    interface IUtf8SpanFormattable
    interface IUtf8SpanParsable<uint16>
    interface IAdditionOperators<uint16, uint16, uint16>
    interface IAdditiveIdentity<uint16, uint16>
    interface IBinaryInteger<uint16>
    interface IBinaryNumber<uint16>
    interface IBitwiseOperators<uint16, uint16, uint16>
    interface IComparisonOperators<uint16, uint16, bool>
    interface IEqualityOperators<uint16, uint16, bool>
    interface IDecrementOperators<uint16>
    interface IDivisionOperators<uint16, uint16, uint16>
    interface IIncrementOperators<uint16>
    interface IModulusOperators<uint16, uint16, uint16>
    interface IMultiplicativeIdentity<uint16, uint16>
    interface IMultiplyOperators<uint16, uint16, uint16>
    interface INumber<uint16>
    interface INumberBase<uint16>
    interface ISubtractionOperators<uint16, uint16, uint16>
    interface IUnaryNegationOperators<uint16, uint16>
    interface IUnaryPlusOperators<uint16, uint16>
    interface IShiftOperators<uint16, int, uint16>
    interface IMinMaxValue<uint16>
    interface IUnsignedNumber<uint16>
[<System.CLSCompliant(false)>]
[<System.Serializable>]
type uint16 = struct
    interface IFormattable
    interface IConvertible
[<System.CLSCompliant(false)>]
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type uint16 = struct
    interface IFormattable
    interface IConvertible
[<System.CLSCompliant(false)>]
type uint16 = struct
    interface IFormattable
Public Structure UInt16
Implements IComparable, IComparable(Of UShort), IConvertible, IEquatable(Of UShort), IFormattable
Public Structure UInt16
Implements IComparable, IComparable(Of UShort), IConvertible, IEquatable(Of UShort), ISpanFormattable
Public Structure UInt16
Implements IAdditionOperators(Of UShort, UShort, UShort), IAdditiveIdentity(Of UShort, UShort), IBinaryInteger(Of UShort), IBinaryNumber(Of UShort), IBitwiseOperators(Of UShort, UShort, UShort), IComparable(Of UShort), IComparisonOperators(Of UShort, UShort, Boolean), IConvertible, IDecrementOperators(Of UShort), IDivisionOperators(Of UShort, UShort, UShort), IEqualityOperators(Of UShort, UShort, Boolean), IEquatable(Of UShort), IIncrementOperators(Of UShort), IMinMaxValue(Of UShort), IModulusOperators(Of UShort, UShort, UShort), IMultiplicativeIdentity(Of UShort, UShort), IMultiplyOperators(Of UShort, UShort, UShort), INumber(Of UShort), INumberBase(Of UShort), IParsable(Of UShort), IShiftOperators(Of UShort, Integer, UShort), ISpanParsable(Of UShort), ISubtractionOperators(Of UShort, UShort, UShort), IUnaryNegationOperators(Of UShort, UShort), IUnaryPlusOperators(Of UShort, UShort), IUnsignedNumber(Of UShort)
Public Structure UInt16
Implements IAdditionOperators(Of UShort, UShort, UShort), IAdditiveIdentity(Of UShort, UShort), IBinaryInteger(Of UShort), IBinaryNumber(Of UShort), IBitwiseOperators(Of UShort, UShort, UShort), IComparable(Of UShort), IComparisonOperators(Of UShort, UShort, Boolean), IConvertible, IDecrementOperators(Of UShort), IDivisionOperators(Of UShort, UShort, UShort), IEqualityOperators(Of UShort, UShort, Boolean), IEquatable(Of UShort), IIncrementOperators(Of UShort), IMinMaxValue(Of UShort), IModulusOperators(Of UShort, UShort, UShort), IMultiplicativeIdentity(Of UShort, UShort), IMultiplyOperators(Of UShort, UShort, UShort), INumber(Of UShort), INumberBase(Of UShort), IParsable(Of UShort), IShiftOperators(Of UShort, Integer, UShort), ISpanParsable(Of UShort), ISubtractionOperators(Of UShort, UShort, UShort), IUnaryNegationOperators(Of UShort, UShort), IUnaryPlusOperators(Of UShort, UShort), IUnsignedNumber(Of UShort), IUtf8SpanParsable(Of UShort)
Public Structure UInt16
Implements IComparable, IConvertible, IFormattable
Public Structure UInt16
Implements IComparable, IComparable(Of UShort), IEquatable(Of UShort), IFormattable
Warisan
UInt16
Atribut
Penerapan
IComparable IComparable<UInt16> IConvertible IEquatable<UInt16> IFormattable ISpanFormattable IComparable<TSelf> IEquatable<TSelf> IParsable<UInt16> IParsable<TSelf> ISpanParsable<UInt16> ISpanParsable<TSelf> IAdditionOperators<UInt16,UInt16,UInt16> IAdditionOperators<TSelf,TSelf,TSelf> IAdditiveIdentity<UInt16,UInt16> IAdditiveIdentity<TSelf,TSelf> IBinaryInteger<UInt16> IBinaryNumber<UInt16> IBinaryNumber<TSelf> IBitwiseOperators<UInt16,UInt16,UInt16> IBitwiseOperators<TSelf,TSelf,TSelf> IComparisonOperators<UInt16,UInt16,Boolean> IComparisonOperators<TSelf,TSelf,Boolean> IDecrementOperators<UInt16> IDecrementOperators<TSelf> IDivisionOperators<UInt16,UInt16,UInt16> IDivisionOperators<TSelf,TSelf,TSelf> IEqualityOperators<UInt16,UInt16,Boolean> IEqualityOperators<TSelf,TOther,TResult> IEqualityOperators<TSelf,TSelf,Boolean> IIncrementOperators<UInt16> IIncrementOperators<TSelf> IMinMaxValue<UInt16> IModulusOperators<UInt16,UInt16,UInt16> IModulusOperators<TSelf,TSelf,TSelf> IMultiplicativeIdentity<UInt16,UInt16> IMultiplicativeIdentity<TSelf,TSelf> IMultiplyOperators<UInt16,UInt16,UInt16> IMultiplyOperators<TSelf,TSelf,TSelf> INumber<UInt16> INumber<TSelf> INumberBase<UInt16> INumberBase<TSelf> IShiftOperators<UInt16,Int32,UInt16> IShiftOperators<TSelf,Int32,TSelf> ISubtractionOperators<UInt16,UInt16,UInt16> ISubtractionOperators<TSelf,TSelf,TSelf> IUnaryNegationOperators<UInt16,UInt16> IUnaryNegationOperators<TSelf,TSelf> IUnaryPlusOperators<UInt16,UInt16> IUnaryPlusOperators<TSelf,TSelf> IUnsignedNumber<UInt16> IUtf8SpanFormattable IUtf8SpanParsable<UInt16> IUtf8SpanParsable<TSelf>

Keterangan

UInt16 Jenis nilai mewakili bilangan bulat yang tidak ditandatangani dengan nilai mulai dari 0 hingga 65535.

Penting

Jenis UInt16 ini tidak sesuai dengan CLS. Jenis alternatif yang mematuhi CLS adalah Int32. Int16 dapat digunakan sebagai gantinya untuk menggantikan UInt16 nilai yang berkisar dari nol hingga Int16.MaxValue. Untuk informasi selengkapnya tentang kepatuhan CLS, lihat Kemandirian Bahasa dan Komponen Language-Independent.

Struktur menyediakan UInt16 metode untuk membandingkan instans jenis ini, mengonversi nilai instans ke representasi stringnya, dan mengonversi representasi string angka menjadi instans jenis ini.

Untuk informasi tentang bagaimana kode spesifikasi format mengontrol representasi string jenis nilai, lihat Jenis Pemformatan.

Bidang

MaxValue

Mewakili nilai terbesar yang mungkin dari UInt16. Bidang ini konstan.

MinValue

Mewakili nilai sekecil mungkin dari UInt16. Bidang ini konstan.

Metode

Clamp(UInt16, UInt16, UInt16)

Menjepit nilai ke nilai minimum dan maksimum inklusif.

CompareTo(Object)

Membandingkan instans ini dengan objek tertentu dan mengembalikan indikasi nilai relatifnya.

CompareTo(UInt16)

Membandingkan instans ini dengan bilangan bulat yang tidak ditandatangani 16-bit tertentu dan mengembalikan indikasi nilai relatifnya.

CreateChecked<TOther>(TOther)

Membuat instans jenis saat ini dari nilai, melemparkan pengecualian luapan untuk nilai apa pun yang berada di luar rentang yang dapat diwakili dari jenis saat ini.

CreateSaturating<TOther>(TOther)

Membuat instans jenis saat ini dari nilai, menjenuhkan nilai apa pun yang berada di luar rentang yang dapat diwakili dari jenis saat ini.

CreateTruncating<TOther>(TOther)

Membuat instans jenis saat ini dari nilai, memotong nilai apa pun yang berada di luar rentang yang dapat diwakili dari jenis saat ini.

DivRem(UInt16, UInt16)

Menghitung quotient dan sisa dari dua nilai.

Equals(Object)

Mengembalikan nilai yang menunjukkan apakah instans ini sama dengan objek tertentu.

Equals(UInt16)

Mengembalikan nilai yang menunjukkan apakah instans ini sama dengan nilai yang ditentukan UInt16 .

GetHashCode()

Mengembalikan kode hash untuk instans ini.

GetTypeCode()

Mengembalikan TypeCode untuk jenis UInt16nilai .

IsEvenInteger(UInt16)

Menentukan apakah nilai mewakili angka integral yang merata.

IsOddInteger(UInt16)

Menentukan apakah nilai mewakili angka integral ganjil.

IsPow2(UInt16)

Menentukan apakah nilai adalah kekuatan dari dua.

LeadingZeroCount(UInt16)

Menghitung jumlah nol di depannya dalam sebuah nilai.

Log2(UInt16)

Menghitung log2 dari nilai.

Max(UInt16, UInt16)

Membandingkan dua nilai dengan komputasi yang lebih besar.

Min(UInt16, UInt16)

Membandingkan dua nilai dengan komputasi yang lebih sedikit.

Parse(ReadOnlySpan<Byte>, IFormatProvider)

Menguraikan rentang karakter UTF-8 ke dalam nilai.

Parse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider)

Menguraikan rentang karakter UTF-8 ke dalam nilai.

Parse(ReadOnlySpan<Char>, IFormatProvider)

Mengurai rentang karakter ke dalam nilai.

Parse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider)

Mengonversi representasi rentang angka dalam gaya tertentu dan format khusus budaya ke bilangan bulat tidak bertanda 16-bit yang setara.

Parse(String)

Mengonversi representasi string angka ke bilangan bulat tidak bertanda 16-bit yang setara.

Parse(String, IFormatProvider)

Mengonversi representasi string dari angka dalam format khusus budaya tertentu ke bilangan bulat tidak bertanda 16-bit yang setara.

Parse(String, NumberStyles)

Mengonversi representasi string angka dalam gaya tertentu ke bilangan bulat tidak bertanda 16-bit yang setara.

Metode ini tidak sesuai dengan CLS. Alternatif yang mematuhi CLS adalah Parse(String, NumberStyles).

Parse(String, NumberStyles, IFormatProvider)

Mengonversi representasi string angka dalam gaya tertentu dan format khusus budaya ke bilangan bulat tidak bertanda 16-bit yang setara.

PopCount(UInt16)

Menghitung jumlah bit yang diatur dalam nilai.

RotateLeft(UInt16, Int32)

Memutar nilai yang ditinggalkan oleh jumlah tertentu.

RotateRight(UInt16, Int32)

Memutar nilai tepat dengan jumlah tertentu.

Sign(UInt16)

Menghitung tanda nilai.

ToString()

Mengonversi nilai numerik instans ini ke representasi string yang setara.

ToString(IFormatProvider)

Mengonversi nilai numerik instans ini ke representasi string yang setara menggunakan informasi format khusus budaya yang ditentukan.

ToString(String)

Mengonversi nilai numerik instans ini ke representasi string yang setara menggunakan format yang ditentukan.

ToString(String, IFormatProvider)

Mengonversi nilai numerik instans ini ke representasi string yang setara menggunakan format yang ditentukan dan informasi format khusus budaya.

TrailingZeroCount(UInt16)

Menghitung jumlah nol berikutnya dalam nilai.

TryFormat(Span<Byte>, Int32, ReadOnlySpan<Char>, IFormatProvider)

Mencoba memformat nilai instans saat ini sebagai UTF-8 ke dalam rentang byte yang disediakan.

TryFormat(Span<Char>, Int32, ReadOnlySpan<Char>, IFormatProvider)

Mencoba memformat nilai instans angka pendek yang tidak ditandatangani saat ini ke dalam rentang karakter yang disediakan.

TryParse(ReadOnlySpan<Byte>, IFormatProvider, UInt16)

Mencoba mengurai rentang karakter UTF-8 menjadi nilai.

TryParse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider, UInt16)

Mencoba mengurai rentang karakter UTF-8 menjadi nilai.

TryParse(ReadOnlySpan<Byte>, UInt16)

Mencoba mengonversi rentang karakter UTF-8 yang berisi representasi string angka ke bilangan bulat 16-bit yang tidak ditandatangani yang setara.

TryParse(ReadOnlySpan<Char>, IFormatProvider, UInt16)

Mencoba mengurai rentang karakter menjadi nilai.

TryParse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider, UInt16)

Mencoba mengonversi representasi rentang angka dalam gaya tertentu dan format khusus budaya ke bilangan bulat yang tidak ditandatangani 16-bit yang setara. Nilai yang dikembalikan menunjukkan apakah konversi berhasil atau gagal.

TryParse(ReadOnlySpan<Char>, UInt16)

Mencoba mengonversi representasi rentang angka menjadi setara dengan bilangan bulat 16-bit yang tidak ditandatangani. Nilai yang dikembalikan menunjukkan apakah konversi berhasil atau gagal.

TryParse(String, IFormatProvider, UInt16)

Mencoba mengurai string ke dalam nilai.

TryParse(String, NumberStyles, IFormatProvider, UInt16)

Mencoba mengonversi representasi string angka dalam gaya tertentu dan format khusus budaya ke bilangan bulat 16-bit yang tidak ditandatangani yang setara. Nilai yang dikembalikan menunjukkan apakah konversi berhasil atau gagal.

TryParse(String, UInt16)

Mencoba mengonversi representasi string angka menjadi setara dengan bilangan bulat 16-bit yang tidak ditandatangani. Nilai yang dikembalikan menunjukkan apakah konversi berhasil atau gagal.

Implementasi Antarmuka Eksplisit

IAdditionOperators<UInt16,UInt16,UInt16>.Addition(UInt16, UInt16)

Menambahkan dua nilai bersama-sama untuk menghitung jumlahnya.

IAdditionOperators<UInt16,UInt16,UInt16>.CheckedAddition(UInt16, UInt16)

Menambahkan dua nilai bersama-sama untuk menghitung jumlahnya.

IAdditiveIdentity<UInt16,UInt16>.AdditiveIdentity

Mendapatkan identitas aditif dari jenis saat ini.

IBinaryInteger<UInt16>.GetByteCount()

Mendapatkan jumlah byte yang akan ditulis sebagai bagian TryWriteLittleEndian(Span<Byte>, Int32)dari .

IBinaryInteger<UInt16>.GetShortestBitLength()

Mendapatkan panjang, dalam bit, dari representasi pelengkap dua terpendek dari nilai saat ini.

IBinaryInteger<UInt16>.TryReadBigEndian(ReadOnlySpan<Byte>, Boolean, UInt16)

Mewakili bilangan bulat yang tidak ditandatangani 16-bit.

IBinaryInteger<UInt16>.TryReadLittleEndian(ReadOnlySpan<Byte>, Boolean, UInt16)

Mewakili bilangan bulat yang tidak ditandatangani 16-bit.

IBinaryInteger<UInt16>.TryWriteBigEndian(Span<Byte>, Int32)

Mencoba menulis nilai saat ini, dalam format big-endian, ke rentang tertentu.

IBinaryInteger<UInt16>.TryWriteLittleEndian(Span<Byte>, Int32)

Mencoba menulis nilai saat ini, dalam format little-endian, ke rentang tertentu.

IBinaryNumber<UInt16>.AllBitsSet

Mendapatkan instans jenis biner tempat semua bit diatur.

IBitwiseOperators<UInt16,UInt16,UInt16>.BitwiseAnd(UInt16, UInt16)

Menghitung bitwise-dan dari dua nilai.

IBitwiseOperators<UInt16,UInt16,UInt16>.BitwiseOr(UInt16, UInt16)

Menghitung bitwise-atau dari dua nilai.

IBitwiseOperators<UInt16,UInt16,UInt16>.ExclusiveOr(UInt16, UInt16)

Menghitung nilai eksklusif atau dari dua nilai.

IBitwiseOperators<UInt16,UInt16,UInt16>.OnesComplement(UInt16)

Menghitung representasi ones-complement dari nilai tertentu.

IComparable.CompareTo(Object)

Membandingkan instans ini dengan objek tertentu dan mengembalikan indikasi nilai relatifnya.

IComparisonOperators<UInt16,UInt16,Boolean>.GreaterThan(UInt16, UInt16)

Membandingkan dua nilai untuk menentukan mana yang lebih besar.

IComparisonOperators<UInt16,UInt16,Boolean>.GreaterThanOrEqual(UInt16, UInt16)

Membandingkan dua nilai untuk menentukan mana yang lebih besar atau sama.

IComparisonOperators<UInt16,UInt16,Boolean>.LessThan(UInt16, UInt16)

Membandingkan dua nilai untuk menentukan mana yang lebih sedikit.

IComparisonOperators<UInt16,UInt16,Boolean>.LessThanOrEqual(UInt16, UInt16)

Membandingkan dua nilai untuk menentukan mana yang kurang atau sama dengan.

IConvertible.GetTypeCode()

Mengembalikan TypeCode untuk jenis UInt16nilai .

IConvertible.ToBoolean(IFormatProvider)

Untuk deskripsi anggota ini, lihat ToBoolean(IFormatProvider).

IConvertible.ToByte(IFormatProvider)

Untuk deskripsi anggota ini, lihat ToByte(IFormatProvider).

IConvertible.ToChar(IFormatProvider)

Untuk deskripsi anggota ini, lihat ToChar(IFormatProvider).

IConvertible.ToDateTime(IFormatProvider)

Konversi ini tidak didukung. Mencoba menggunakan metode ini melempar InvalidCastException.

IConvertible.ToDecimal(IFormatProvider)

Untuk deskripsi anggota ini, lihat ToDecimal(IFormatProvider).

IConvertible.ToDouble(IFormatProvider)

Untuk deskripsi anggota ini, lihat ToDouble(IFormatProvider).

IConvertible.ToInt16(IFormatProvider)

Untuk deskripsi anggota ini, lihat ToInt16(IFormatProvider).

IConvertible.ToInt32(IFormatProvider)

Untuk deskripsi anggota ini, lihat ToInt32(IFormatProvider).

IConvertible.ToInt64(IFormatProvider)

Untuk deskripsi anggota ini, lihat ToInt64(IFormatProvider).

IConvertible.ToSByte(IFormatProvider)

Untuk deskripsi anggota ini, lihat ToSByte(IFormatProvider).

IConvertible.ToSingle(IFormatProvider)

Untuk deskripsi anggota ini, lihat ToSingle(IFormatProvider).

IConvertible.ToType(Type, IFormatProvider)

Untuk deskripsi anggota ini, lihat ToType(Type, IFormatProvider).

IConvertible.ToUInt16(IFormatProvider)

Untuk deskripsi anggota ini, lihat ToUInt16(IFormatProvider).

IConvertible.ToUInt32(IFormatProvider)

Untuk deskripsi anggota ini, lihat ToUInt32(IFormatProvider).

IConvertible.ToUInt64(IFormatProvider)

Untuk deskripsi anggota ini, lihat ToUInt64(IFormatProvider).

IDecrementOperators<UInt16>.CheckedDecrement(UInt16)

Mengurangi nilai.

IDecrementOperators<UInt16>.Decrement(UInt16)

Mengurangi nilai.

IDivisionOperators<UInt16,UInt16,UInt16>.Division(UInt16, UInt16)

Membagi satu nilai dengan nilai lain untuk menghitung quotient mereka.

IEqualityOperators<UInt16,UInt16,Boolean>.Equality(UInt16, UInt16)

Membandingkan dua nilai untuk menentukan kesetaraan.

IEqualityOperators<UInt16,UInt16,Boolean>.Inequality(UInt16, UInt16)

Membandingkan dua nilai untuk menentukan ketidaksetaraan.

IIncrementOperators<UInt16>.CheckedIncrement(UInt16)

Menaikkan nilai.

IIncrementOperators<UInt16>.Increment(UInt16)

Menaikkan nilai.

IMinMaxValue<UInt16>.MaxValue

Mendapatkan nilai maksimum dari jenis saat ini.

IMinMaxValue<UInt16>.MinValue

Mendapatkan nilai minimum dari jenis saat ini.

IModulusOperators<UInt16,UInt16,UInt16>.Modulus(UInt16, UInt16)

Membagi dua nilai bersama-sama untuk menghitung modulus atau sisanya.

IMultiplicativeIdentity<UInt16,UInt16>.MultiplicativeIdentity

Mendapatkan identitas multiplikatif dari jenis saat ini.

IMultiplyOperators<UInt16,UInt16,UInt16>.CheckedMultiply(UInt16, UInt16)

Mengalikan dua nilai bersama-sama untuk menghitung produk mereka.

IMultiplyOperators<UInt16,UInt16,UInt16>.Multiply(UInt16, UInt16)

Mengalikan dua nilai bersama-sama untuk menghitung produk mereka.

INumber<UInt16>.CopySign(UInt16, UInt16)

Menyalin tanda nilai ke tanda nilai lain.

INumber<UInt16>.MaxNumber(UInt16, UInt16)

Membandingkan dua nilai dengan komputasi yang lebih besar dan mengembalikan nilai lain jika input adalah NaN.

INumber<UInt16>.MinNumber(UInt16, UInt16)

Membandingkan dua nilai dengan komputasi yang lebih kecil dan mengembalikan nilai lain jika input adalah NaN.

INumberBase<UInt16>.Abs(UInt16)

Menghitung absolut nilai.

INumberBase<UInt16>.IsCanonical(UInt16)

Menentukan apakah nilai berada dalam representasi kanonisnya.

INumberBase<UInt16>.IsComplexNumber(UInt16)

Menentukan apakah nilai mewakili bilangan kompleks.

INumberBase<UInt16>.IsFinite(UInt16)

Menentukan apakah nilai terbatas.

INumberBase<UInt16>.IsImaginaryNumber(UInt16)

Menentukan apakah nilai mewakili angka imajiner murni.

INumberBase<UInt16>.IsInfinity(UInt16)

Menentukan apakah nilai tidak terbatas.

INumberBase<UInt16>.IsInteger(UInt16)

Menentukan apakah nilai mewakili angka integral.

INumberBase<UInt16>.IsNaN(UInt16)

Menentukan apakah nilainya adalah NaN.

INumberBase<UInt16>.IsNegative(UInt16)

Menentukan apakah nilai negatif.

INumberBase<UInt16>.IsNegativeInfinity(UInt16)

Menentukan apakah nilai adalah infinity negatif.

INumberBase<UInt16>.IsNormal(UInt16)

Menentukan apakah nilai normal.

INumberBase<UInt16>.IsPositive(UInt16)

Menentukan apakah nilai positif.

INumberBase<UInt16>.IsPositiveInfinity(UInt16)

Menentukan apakah nilai adalah infinitas positif.

INumberBase<UInt16>.IsRealNumber(UInt16)

Menentukan apakah nilai mewakili angka riil.

INumberBase<UInt16>.IsSubnormal(UInt16)

Menentukan apakah nilainya subnormal.

INumberBase<UInt16>.IsZero(UInt16)

Menentukan apakah nilai adalah nol.

INumberBase<UInt16>.MaxMagnitude(UInt16, UInt16)

Membandingkan dua nilai dengan komputasi yang lebih besar.

INumberBase<UInt16>.MaxMagnitudeNumber(UInt16, UInt16)

Membandingkan dua nilai dengan komputasi yang memiliki besaran lebih besar dan mengembalikan nilai lainnya jika input adalah NaN.

INumberBase<UInt16>.MinMagnitude(UInt16, UInt16)

Membandingkan dua nilai dengan komputasi yang lebih kecil.

INumberBase<UInt16>.MinMagnitudeNumber(UInt16, UInt16)

Membandingkan dua nilai dengan komputasi yang memiliki besaran yang lebih kecil dan mengembalikan nilai lainnya jika input adalah NaN.

INumberBase<UInt16>.One

Mendapatkan nilai 1 untuk jenis tersebut.

INumberBase<UInt16>.Radix

Mendapatkan radix, atau basis, untuk jenisnya.

INumberBase<UInt16>.TryConvertFromChecked<TOther>(TOther, UInt16)

Mewakili bilangan bulat yang tidak ditandatangani 16-bit.

INumberBase<UInt16>.TryConvertFromSaturating<TOther>(TOther, UInt16)

Mewakili bilangan bulat yang tidak ditandatangani 16-bit.

INumberBase<UInt16>.TryConvertFromTruncating<TOther>(TOther, UInt16)

Mewakili bilangan bulat yang tidak ditandatangani 16-bit.

INumberBase<UInt16>.TryConvertToChecked<TOther>(UInt16, TOther)

Mencoba mengonversi instans jenis saat ini ke jenis lain, melemparkan pengecualian luapan untuk nilai apa pun yang berada di luar rentang yang dapat diwakili dari jenis saat ini.

INumberBase<UInt16>.TryConvertToSaturating<TOther>(UInt16, TOther)

Mencoba mengonversi instans dari jenis saat ini ke jenis lain, menjenuhkan nilai apa pun yang berada di luar rentang yang dapat diwakili dari jenis saat ini.

INumberBase<UInt16>.TryConvertToTruncating<TOther>(UInt16, TOther)

Mencoba mengonversi instans dari jenis saat ini ke jenis lain, memotong nilai apa pun yang berada di luar rentang yang dapat diwakili dari jenis saat ini.

INumberBase<UInt16>.Zero

Mendapatkan nilai 0 untuk jenis tersebut.

IShiftOperators<UInt16,Int32,UInt16>.LeftShift(UInt16, Int32)

Menggeser nilai yang ditinggalkan oleh jumlah tertentu.

IShiftOperators<UInt16,Int32,UInt16>.RightShift(UInt16, Int32)

Menggeser nilai ke kanan dengan jumlah tertentu.

IShiftOperators<UInt16,Int32,UInt16>.UnsignedRightShift(UInt16, Int32)

Menggeser nilai ke kanan dengan jumlah tertentu.

ISubtractionOperators<UInt16,UInt16,UInt16>.CheckedSubtraction(UInt16, UInt16)

Mengurangi dua nilai untuk menghitung perbedaannya.

ISubtractionOperators<UInt16,UInt16,UInt16>.Subtraction(UInt16, UInt16)

Mengurangi dua nilai untuk menghitung perbedaannya.

IUnaryNegationOperators<UInt16,UInt16>.CheckedUnaryNegation(UInt16)

Menghitung negasi unary yang diperiksa dari nilai.

IUnaryNegationOperators<UInt16,UInt16>.UnaryNegation(UInt16)

Menghitung negasi nilai yang tidak biasa.

IUnaryPlusOperators<UInt16,UInt16>.UnaryPlus(UInt16)

Menghitung nilai plus unary.

Berlaku untuk

Keamanan Thread

Semua anggota jenis ini aman untuk utas. Anggota yang tampaknya memodifikasi status instans benar-benar mengembalikan instans baru yang diinisialisasi dengan nilai baru. Seperti halnya jenis lain, membaca dan menulis ke variabel bersama yang berisi instans jenis ini harus dilindungi oleh kunci untuk menjamin keamanan utas.

Lihat juga