UIntPtr.CreateSaturating<TOther>(TOther) Metod

Definition

Skapar en instans av den aktuella typen från ett värde som mättar alla värden som ligger utanför det representerarbara intervallet för den aktuella typen.

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

Typparametrar

TOther

Typen av value.

Parametrar

value
TOther

Värdet som används för att skapa instansen av TSelf.

Returer

UIntPtr

unativeint

En instans av som skapats TSelf från value, mättar om value den ligger utanför det representerarbara intervallet TSelf.

Implementeringar

Gäller för