IntPtr.CreateTruncating<TOther>(TOther) Metod

Definition

Skapar en instans av den aktuella typen från ett värde och trunkerar 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 IntPtr CreateTruncating(TOther value) = System::Numerics::INumberBase<IntPtr>::CreateTruncating;
public static IntPtr CreateTruncating<TOther>(TOther value) where TOther : System.Numerics.INumberBase<TOther>;
static member CreateTruncating : 'Other -> nativeint (requires 'Other :> System.Numerics.INumberBase<'Other>)
Public Shared Function CreateTruncating(Of TOther As INumberBase(Of TOther)) (value As TOther) As IntPtr

Typparametrar

TOther

Typen av value.

Parametrar

value
TOther

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

Returer

IntPtr

nativeint

En instans av TSelf skapad från value, trunkering om value den ligger utanför det representerarbara intervallet TSelf.

Implementeringar

Gäller för