UInt16 Yapı

Tanım

Önemli

Bu API, CLS uyumlu değildir.

16 bit işaretsiz tamsayıyı temsil eder.

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
Devralma
UInt16
Öznitelikler
Uygulamalar
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>

Açıklamalar

UInt16 Değer türü, 0 ile 65535 arasında değişen işaretsiz tamsayıları temsil eder.

Önemli

Tür UInt16 CLS uyumlu değil. CLS uyumlu alternatif türü şeklindedir Int32. Int16 bunun yerine, sıfır ile arasında değişen bir UInt16 değeri değiştirmek için Int16.MaxValuekullanılabilir. CLS uyumluluğu hakkında daha fazla bilgi için bkz. Dil Bağımsızlığı ve Language-Independent Bileşenleri.

UInt16 yapısı, bu türün örneklerini karşılaştırmak, örneğin değerini dize gösterimine dönüştürmek ve bir sayının dize gösterimini bu türün bir örneğine dönüştürmek için yöntemler sağlar.

Biçim belirtimi kodlarının değer türlerinin dize gösterimini nasıl denetlediğini öğrenmek için bkz . Biçimlendirme Türleri.

Alanlar

MaxValue

mümkün olan en büyük değerini UInt16temsil eder. Bu alan sabittir.

MinValue

mümkün olan en küçük değerini UInt16temsil eder. Bu alan sabittir.

Yöntemler

Clamp(UInt16, UInt16, UInt16)

Bir değeri kapsayıcı bir minimum ve maksimum değere kelepçeler.

CompareTo(Object)

Bu örneği belirtilen nesne ile karşılaştırır ve göreli değerlerin bir göstergesini döndürür.

CompareTo(UInt16)

Bu örneği belirtilen 16 bit işaretsiz tamsayıyla karşılaştırır ve göreli değerlerinin bir göstergesini döndürür.

CreateChecked<TOther>(TOther)

Geçerli türün bir örneğini bir değerden oluşturur ve geçerli türün temsil edilebilir aralığının dışında kalan değerler için taşma özel durumu oluşturur.

CreateSaturating<TOther>(TOther)

Geçerli türün bir örneğini bir değerden oluşturur ve geçerli türün temsil edilebilir aralığının dışında kalan tüm değerleri doygunluğa getirir.

CreateTruncating<TOther>(TOther)

Geçerli türün bir örneğini bir değerden oluşturur ve geçerli türün temsil edilebilir aralığının dışında kalan değerleri keserek.

DivRem(UInt16, UInt16)

İki değerin bölümünü ve kalanını hesaplar.

Equals(Object)

Bu örneğin, belirtilen bir nesneye eşit olup olmadığını gösteren bir değeri döndürür.

Equals(UInt16)

Bu örneğin belirtilen UInt16 bir değere eşit olup olmadığını gösteren bir değer döndürür.

GetHashCode()

Bu örneğe ilişkin karma kodu döndürür.

GetTypeCode()

değer türü UInt16için değerini TypeCode döndürür.

IsEvenInteger(UInt16)

Bir değerin çift tam sayı olup olmadığını belirler.

IsOddInteger(UInt16)

Bir değerin tek integralli bir sayıyı temsil eder olup olmadığını belirler.

IsPow2(UInt16)

Bir değerin ikinin gücü olup olmadığını belirler.

LeadingZeroCount(UInt16)

Bir değerdeki baştaki sıfırların sayısını hesaplar.

Log2(UInt16)

Bir değerin log2'sini hesaplar.

Max(UInt16, UInt16)

İki değeri daha büyük olan işlemle karşılaştırır.

Min(UInt16, UInt16)

daha küçük olan iki değeri işlemle karşılaştırır.

Parse(ReadOnlySpan<Byte>, IFormatProvider)

UTF-8 karakterlik bir aralığı bir değere ayrıştırıyor.

Parse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider)

UTF-8 karakterlik bir aralığı bir değere ayrıştırıyor.

Parse(ReadOnlySpan<Char>, IFormatProvider)

Bir karakter aralığını bir değere ayrıştırıyor.

Parse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider)

Bir sayının belirtilen stil ve kültüre özgü biçimdeki span gösterimini 16 bit işaretsiz tamsayı eşdeğerine dönüştürür.

Parse(String)

Bir sayının dize gösterimini 16 bitlik işaretsiz tamsayı eşdeğerine dönüştürür.

Parse(String, IFormatProvider)

Belirtilen kültüre özgü biçimdeki bir sayının dize gösterimini 16 bit işaretsiz tamsayı eşdeğerine dönüştürür.

Parse(String, NumberStyles)

Belirtilen stildeki bir sayının dize gösterimini 16 bit işaretsiz tamsayı eşdeğerine dönüştürür.

Bu yöntem CLS uyumlu değildir. CLS uyumlu alternatif: Parse(String, NumberStyles).

Parse(String, NumberStyles, IFormatProvider)

Belirtilen stilde ve kültüre özgü biçimdeki bir sayının dize gösterimini 16 bit işaretsiz tamsayı eşdeğerine dönüştürür.

PopCount(UInt16)

Bir değerde ayarlanan bit sayısını hesaplar.

RotateLeft(UInt16, Int32)

Belirli bir miktar tarafından bırakılan bir değeri döndürür.

RotateRight(UInt16, Int32)

Değeri belirli bir miktarda sağa döndürür.

Sign(UInt16)

Bir değerin işaretini hesaplar.

ToString()

Bu örneğin sayısal değerini eşdeğer dize gösterimine dönüştürür.

ToString(IFormatProvider)

Bu örneğin sayısal değerini belirtilen kültüre özgü biçim bilgilerini kullanarak eşdeğer dize gösterimine dönüştürür.

ToString(String)

Belirtilen biçimi kullanarak bu örneğin sayısal değerini eşdeğer dize gösterimine dönüştürür.

ToString(String, IFormatProvider)

Bu örneğin sayısal değerini belirtilen biçim ve kültüre özgü biçim bilgilerini kullanarak eşdeğer dize gösterimine dönüştürür.

TrailingZeroCount(UInt16)

Bir değerdeki sondaki sıfırların sayısını hesaplar.

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

Geçerli örneğin değerini belirtilen bayt aralığına UTF-8 olarak biçimlendirmeye çalışır.

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

Geçerli işaretsiz kısa sayı örneğinin değerini sağlanan karakter aralığına biçimlendirmeye çalışır.

TryParse(ReadOnlySpan<Byte>, IFormatProvider, UInt16)

UTF-8 karakterlik bir aralığı bir değere ayrıştırmaya çalışır.

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

UTF-8 karakterlik bir aralığı bir değere ayrıştırmaya çalışır.

TryParse(ReadOnlySpan<Byte>, UInt16)

Bir sayının dize gösterimini içeren UTF-8 karakter aralığını 16 bit işaretsiz tamsayı eşdeğerine dönüştürmeye çalışır.

TryParse(ReadOnlySpan<Char>, IFormatProvider, UInt16)

Bir karakter aralığını bir değere ayrıştırmaya çalışır.

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

Bir sayının belirtilen stildeki ve kültüre özgü biçimdeki span gösterimini 16 bit işaretsiz tamsayı eşdeğerine dönüştürmeye çalışır. Dönüştürmenin başarılı veya başarısız olduğunu gösteren dönüş değeri.

TryParse(ReadOnlySpan<Char>, UInt16)

Bir sayının span gösterimini 16 bit işaretsiz tamsayı eşdeğerine dönüştürmeye çalışır. Dönüştürmenin başarılı veya başarısız olduğunu gösteren dönüş değeri.

TryParse(String, IFormatProvider, UInt16)

Bir dizeyi bir değere ayrıştırmaya çalışır.

TryParse(String, NumberStyles, IFormatProvider, UInt16)

Belirtilen stilde ve kültüre özgü biçimdeki bir sayının dize gösterimini 16 bit işaretsiz tamsayı eşdeğerine dönüştürmeye çalışır. Dönüştürmenin başarılı veya başarısız olduğunu gösteren dönüş değeri.

TryParse(String, UInt16)

Bir sayının dize gösterimini 16 bit işaretsiz tamsayı eşdeğerine dönüştürmeye çalışır. Dönüştürmenin başarılı veya başarısız olduğunu gösteren dönüş değeri.

Belirtik Arabirim Kullanımları

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

Toplamlarını hesaplamak için iki değeri bir araya ekler.

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

Toplamlarını hesaplamak için iki değeri bir araya ekler.

IAdditiveIdentity<UInt16,UInt16>.AdditiveIdentity

Geçerli türün ek kimliğini alır.

IBinaryInteger<UInt16>.GetByteCount()

öğesinin bir parçası TryWriteLittleEndian(Span<Byte>, Int32)olarak yazılacak bayt sayısını alır.

IBinaryInteger<UInt16>.GetShortestBitLength()

En kısa ikinin geçerli değerin tamamlayıcı gösteriminin bit cinsinden uzunluğunu alır.

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

16 bit işaretsiz tamsayıyı temsil eder.

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

16 bit işaretsiz tamsayıyı temsil eder.

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

Geçerli değeri büyük endian biçiminde belirli bir yayılmaya yazmaya çalışır.

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

Küçük endian biçimindeki geçerli değeri belirli bir yayılmaya yazmaya çalışır.

IBinaryNumber<UInt16>.AllBitsSet

Tüm bitlerin ayarlandığı ikili türün bir örneğini alır.

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

İki değerin bit düzeyinde ve değerlerini hesaplar.

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

bit düzeyinde veya iki değeri hesaplar.

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

İki değerin özel veya dışlayıcı değerini hesaplar.

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

Belirli bir değerin bireyi tamamlayan gösterimini hesaplar.

IComparable.CompareTo(Object)

Bu örneği belirtilen nesne ile karşılaştırır ve göreli değerlerin bir göstergesini döndürür.

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

Hangisinin daha büyük olduğunu belirlemek için iki değeri karşılaştırır.

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

Hangisinin daha büyük veya eşit olduğunu belirlemek için iki değeri karşılaştırır.

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

Hangisinin daha az olduğunu belirlemek için iki değeri karşılaştırır.

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

Hangisinin daha az veya eşit olduğunu belirlemek için iki değeri karşılaştırır.

IConvertible.GetTypeCode()

değer türü UInt16için değerini TypeCode döndürür.

IConvertible.ToBoolean(IFormatProvider)

Bu üyenin açıklaması için bkz ToBoolean(IFormatProvider). .

IConvertible.ToByte(IFormatProvider)

Bu üyenin açıklaması için bkz ToByte(IFormatProvider). .

IConvertible.ToChar(IFormatProvider)

Bu üyenin açıklaması için bkz ToChar(IFormatProvider). .

IConvertible.ToDateTime(IFormatProvider)

Bu dönüşüm desteklenmiyor. Bu yöntem kullanılmaya çalışılması bir InvalidCastExceptionoluşturur.

IConvertible.ToDecimal(IFormatProvider)

Bu üyenin açıklaması için bkz ToDecimal(IFormatProvider). .

IConvertible.ToDouble(IFormatProvider)

Bu üyenin açıklaması için bkz ToDouble(IFormatProvider). .

IConvertible.ToInt16(IFormatProvider)

Bu üyenin açıklaması için bkz ToInt16(IFormatProvider). .

IConvertible.ToInt32(IFormatProvider)

Bu üyenin açıklaması için bkz ToInt32(IFormatProvider). .

IConvertible.ToInt64(IFormatProvider)

Bu üyenin açıklaması için bkz ToInt64(IFormatProvider). .

IConvertible.ToSByte(IFormatProvider)

Bu üyenin açıklaması için bkz ToSByte(IFormatProvider). .

IConvertible.ToSingle(IFormatProvider)

Bu üyenin açıklaması için bkz ToSingle(IFormatProvider). .

IConvertible.ToType(Type, IFormatProvider)

Bu üyenin açıklaması için bkz ToType(Type, IFormatProvider). .

IConvertible.ToUInt16(IFormatProvider)

Bu üyenin açıklaması için bkz ToUInt16(IFormatProvider). .

IConvertible.ToUInt32(IFormatProvider)

Bu üyenin açıklaması için bkz ToUInt32(IFormatProvider). .

IConvertible.ToUInt64(IFormatProvider)

Bu üyenin açıklaması için bkz ToUInt64(IFormatProvider). .

IDecrementOperators<UInt16>.CheckedDecrement(UInt16)

Değeri azaltma.

IDecrementOperators<UInt16>.Decrement(UInt16)

Değeri azaltma.

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

Bölümlerini hesaplamak için bir değeri diğerine böler.

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

Eşitliği belirlemek için iki değeri karşılaştırır.

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

Eşitsizliği belirlemek için iki değeri karşılaştırır.

IIncrementOperators<UInt16>.CheckedIncrement(UInt16)

Bir değeri artırır.

IIncrementOperators<UInt16>.Increment(UInt16)

Bir değeri artırır.

IMinMaxValue<UInt16>.MaxValue

Geçerli türün en büyük değerini alır.

IMinMaxValue<UInt16>.MinValue

Geçerli türün en küçük değerini alır.

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

Modüllerini veya kalan değerlerini hesaplamak için iki değeri birbirine böler.

IMultiplicativeIdentity<UInt16,UInt16>.MultiplicativeIdentity

Geçerli türün çarpımlı kimliğini alır.

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

Çarpımlarını hesaplamak için iki değeri çarpar.

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

Çarpımlarını hesaplamak için iki değeri çarpar.

INumber<UInt16>.CopySign(UInt16, UInt16)

Bir değerin işaretini başka bir değerin işaretine kopyalar.

INumber<UInt16>.MaxNumber(UInt16, UInt16)

daha büyük olan ve giriş NaNise diğer değeri döndüren iki değeri ile karşılaştırır.

INumber<UInt16>.MinNumber(UInt16, UInt16)

daha küçük olan ve giriş ise diğer değeri döndüren iki değeri hesapla karşılaştırır NaN.

INumberBase<UInt16>.Abs(UInt16)

Bir değerin mutlak değerini hesaplar.

INumberBase<UInt16>.IsCanonical(UInt16)

Bir değerin kurallı gösteriminde olup olmadığını belirler.

INumberBase<UInt16>.IsComplexNumber(UInt16)

Bir değerin karmaşık bir sayıyı temsil eder olup olmadığını belirler.

INumberBase<UInt16>.IsFinite(UInt16)

Bir değerin sınırlı olup olmadığını belirler.

INumberBase<UInt16>.IsImaginaryNumber(UInt16)

Bir değerin yalnızca sanal bir sayıyı temsil eder olup olmadığını belirler.

INumberBase<UInt16>.IsInfinity(UInt16)

Değerin sonsuz olup olmadığını belirler.

INumberBase<UInt16>.IsInteger(UInt16)

Bir değerin tam sayı olup olmadığını belirler.

INumberBase<UInt16>.IsNaN(UInt16)

Bir değerin NaN olup olmadığını belirler.

INumberBase<UInt16>.IsNegative(UInt16)

Bir değerin negatif olup olmadığını belirler.

INumberBase<UInt16>.IsNegativeInfinity(UInt16)

Bir değerin negatif sonsuzluk olup olmadığını belirler.

INumberBase<UInt16>.IsNormal(UInt16)

Bir değerin normal olup olmadığını belirler.

INumberBase<UInt16>.IsPositive(UInt16)

Bir değerin pozitif olup olmadığını belirler.

INumberBase<UInt16>.IsPositiveInfinity(UInt16)

Bir değerin sonsuzluk değerinin pozitif olup olmadığını belirler.

INumberBase<UInt16>.IsRealNumber(UInt16)

Bir değerin gerçek bir sayıyı temsil eder olup olmadığını belirler.

INumberBase<UInt16>.IsSubnormal(UInt16)

Bir değerin normalin altında olup olmadığını belirler.

INumberBase<UInt16>.IsZero(UInt16)

Değerin sıfır olup olmadığını belirler.

INumberBase<UInt16>.MaxMagnitude(UInt16, UInt16)

İki değeri daha büyük olan işlemle karşılaştırır.

INumberBase<UInt16>.MaxMagnitudeNumber(UInt16, UInt16)

İki değeri, daha büyük bir büyüklüğe sahip olan ve giriş ise diğer değeri döndüren işlemle karşılaştırır NaN.

INumberBase<UInt16>.MinMagnitude(UInt16, UInt16)

daha küçük olan iki değeri işlemle karşılaştırır.

INumberBase<UInt16>.MinMagnitudeNumber(UInt16, UInt16)

daha küçük bir büyüklüğe sahip olan ve giriş ise diğer değeri döndüren iki değeri hesapla karşılaştırır NaN.

INumberBase<UInt16>.One

Türün değerini 1 alır.

INumberBase<UInt16>.Radix

Türün sayı tabanını veya tabanını alır.

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

16 bit işaretsiz tamsayıyı temsil eder.

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

16 bit işaretsiz tamsayıyı temsil eder.

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

16 bit işaretsiz tamsayıyı temsil eder.

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

Geçerli türün bir örneğini başka bir türe dönüştürmeyi dener ve geçerli türün temsil edilebilir aralığının dışında kalan değerler için taşma özel durumu oluşturur.

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

Geçerli türün bir örneğini başka bir türe dönüştürmeyi dener ve geçerli türün temsil edilebilir aralığının dışında kalan değerleri doygunluğa getirir.

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

Geçerli türün bir örneğini başka bir türe dönüştürmeyi dener ve geçerli türün temsil edilebilir aralığının dışında kalan tüm değerleri keser.

INumberBase<UInt16>.Zero

Türün değerini 0 alır.

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

Belirli bir miktarın solunda kalan bir değeri kaydırıyor.

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

Değeri belirli bir tutara göre sağa kaydırıyor.

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

Değeri belirli bir tutara göre sağa kaydırıyor.

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

Farklarını hesaplamak için iki değeri çıkarır.

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

Farklarını hesaplamak için iki değeri çıkarır.

IUnaryNegationOperators<UInt16,UInt16>.CheckedUnaryNegation(UInt16)

Bir değerin denetlenen tekil olumsuzlamasını hesaplar.

IUnaryNegationOperators<UInt16,UInt16>.UnaryNegation(UInt16)

Bir değerin tekli olumsuzlamasını hesaplar.

IUnaryPlusOperators<UInt16,UInt16>.UnaryPlus(UInt16)

Bir değerin birli artısını hesaplar.

Şunlara uygulanır

İş Parçacığı Güvenliği

Bu türün tüm üyeleri iş parçacığı güvenlidir. Örneğin durumunu değiştirmek için görüntülenen üyeler, gerçekte yeni değer ile başlatılan yeni bir örneği döndürür. Diğer türlerde olduğu gibi, bu türün örneğini içeren paylaşılan değişkenini okuma ve yazma, iş parçacığı güvenliğini sağlamak için bir kilit tarafından korunmalıdır.

Ayrıca bkz.