UInt32.CreateSaturating<TOther>(TOther) Metode

Definisi

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

public:
generic <typename TOther>
 where TOther : System::Numerics::INumberBase<TOther> static System::UInt32 CreateSaturating(TOther value) = System::Numerics::INumberBase<System::UInt32>::CreateSaturating;
public static uint CreateSaturating<TOther> (TOther value) where TOther : System.Numerics.INumberBase<TOther>;
static member CreateSaturating : 'Other -> uint32 (requires 'Other :> System.Numerics.INumberBase<'Other>)
Public Shared Function CreateSaturating(Of TOther As INumberBase(Of TOther)) (value As TOther) As UInteger

Jenis parameter

TOther

Jenis value.

Parameter

value
TOther

Nilai yang digunakan untuk membuat instans TSelf.

Mengembalikan

Instans yang TSelf dibuat dari value, menjenuhkan jika value berada di luar rentang yang dapat diwakili dari TSelf.

Penerapan

Berlaku untuk