NFloat.Explicit 运算符

定义

重载

Explicit(NFloat to SByte)

将本机大小的浮点值显式转换为其最接近的可 SByte 表示值。

Explicit(NFloat to Single)

将本机大小的浮点值显式转换为其最接近的可 Single 表示值。

Explicit(NFloat to UInt128)

将本机大小的浮点值显式转换为其最接近的可 UInt128 表示值。

Explicit(NFloat to UInt16)

将本机大小的浮点值显式转换为其最接近的可 UInt16 表示值。

Explicit(UInt128 to NFloat)

显式转换为 UInt128 其最接近的可表示本机大小的浮点值。

Explicit(NFloat to UInt64)

将本机大小的浮点值显式转换为其最接近的可 UInt64 表示值。

Explicit(NFloat to UIntPtr)

将本机大小的浮点值显式转换为其最接近的可 UIntPtr 表示值。

Explicit(NFloat to IntPtr)

将本机大小的浮点值显式转换为其最接近的可 IntPtr 表示值。

Explicit(NFloat to UInt32)

将本机大小的浮点值显式转换为其最接近的可 UInt32 表示值。

Explicit(NFloat to Int64)

将本机大小的浮点值显式转换为其最接近的可 Int64 表示值。

Explicit(Decimal to NFloat)

将值 Decimal 显式转换为其最接近的可表示本机大小的浮点值。

Explicit(NFloat to Int16)

将本机大小的浮点值显式转换为其最接近的可 Int16 表示值。

Explicit(NFloat to Int128)

将本机大小的浮点值显式转换为其最接近的可 Int128 表示值。

Explicit(NFloat to Half)

将本机大小的浮点值显式转换为其最接近的可 Half 表示值。

Explicit(NFloat to Decimal)

将本机大小的浮点值显式转换为其最接近的可 Decimal 表示值。

Explicit(NFloat to Char)

将本机大小的浮点值显式转换为其最接近的可 Char 表示值。

Explicit(NFloat to Byte)

将本机大小的浮点值显式转换为其最接近的可 Byte 表示值。

Explicit(Int128 to NFloat)

将 显式转换为 Int128 其最接近的可表示本机大小的浮点值。

Explicit(Double to NFloat)

将值 Double 显式转换为其最接近的可表示本机大小的浮点值。

Explicit(NFloat to Int32)

将本机大小的浮点值显式转换为其最接近的可 Int32 表示值。

Explicit(NFloat to SByte)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

重要

此 API 不符合 CLS。

将本机大小的浮点值显式转换为其最接近的可 SByte 表示值。

public:
 static explicit operator System::SByte(System::Runtime::InteropServices::NFloat value);
[System.CLSCompliant(false)]
public static explicit operator sbyte (System.Runtime.InteropServices.NFloat value);
[<System.CLSCompliant(false)>]
static member op_Explicit : System.Runtime.InteropServices.NFloat -> sbyte
Public Shared Narrowing Operator CType (value As NFloat) As SByte

参数

value
NFloat

要转换的值。

返回

value 转换为其最接近的可 SByte 表示值。

属性

适用于

Explicit(NFloat to Single)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

将本机大小的浮点值显式转换为其最接近的可 Single 表示值。

public:
 static explicit operator float(System::Runtime::InteropServices::NFloat value);
public static explicit operator float (System.Runtime.InteropServices.NFloat value);
static member op_Explicit : System.Runtime.InteropServices.NFloat -> single
Public Shared Narrowing Operator CType (value As NFloat) As Single

参数

value
NFloat

要转换的值。

返回

value 转换为其最接近的可 Single 表示值。

适用于

Explicit(NFloat to UInt128)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

重要

此 API 不符合 CLS。

将本机大小的浮点值显式转换为其最接近的可 UInt128 表示值。

public:
 static explicit operator UInt128(System::Runtime::InteropServices::NFloat value);
[System.CLSCompliant(false)]
public static explicit operator UInt128 (System.Runtime.InteropServices.NFloat value);
[<System.CLSCompliant(false)>]
static member op_Explicit : System.Runtime.InteropServices.NFloat -> UInt128
Public Shared Narrowing Operator CType (value As NFloat) As UInt128

参数

value
NFloat

要转换的值。

返回

value 转换为其最接近的可 UInt128 表示值。

属性

适用于

Explicit(NFloat to UInt16)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

重要

此 API 不符合 CLS。

将本机大小的浮点值显式转换为其最接近的可 UInt16 表示值。

public:
 static explicit operator System::UInt16(System::Runtime::InteropServices::NFloat value);
[System.CLSCompliant(false)]
public static explicit operator ushort (System.Runtime.InteropServices.NFloat value);
[<System.CLSCompliant(false)>]
static member op_Explicit : System.Runtime.InteropServices.NFloat -> uint16
Public Shared Narrowing Operator CType (value As NFloat) As UShort

参数

value
NFloat

要转换的值。

返回

value 转换为其最接近的可 UInt16 表示值。

属性

适用于

Explicit(UInt128 to NFloat)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

重要

此 API 不符合 CLS。

显式转换为 UInt128 其最接近的可表示本机大小的浮点值。

public:
 static explicit operator System::Runtime::InteropServices::NFloat(UInt128 value);
[System.CLSCompliant(false)]
public static explicit operator System.Runtime.InteropServices.NFloat (UInt128 value);
[<System.CLSCompliant(false)>]
static member op_Explicit : UInt128 -> System.Runtime.InteropServices.NFloat
Public Shared Narrowing Operator CType (value As UInt128) As NFloat

参数

value
UInt128

要转换的值。

返回

value 转换为其最接近的可表示本机大小的浮点值。

属性

适用于

Explicit(NFloat to UInt64)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

重要

此 API 不符合 CLS。

将本机大小的浮点值显式转换为其最接近的可 UInt64 表示值。

public:
 static explicit operator System::UInt64(System::Runtime::InteropServices::NFloat value);
[System.CLSCompliant(false)]
public static explicit operator ulong (System.Runtime.InteropServices.NFloat value);
[<System.CLSCompliant(false)>]
static member op_Explicit : System.Runtime.InteropServices.NFloat -> uint64
Public Shared Narrowing Operator CType (value As NFloat) As ULong

参数

value
NFloat

要转换的值。

返回

value 转换为其最接近的可 UInt64 表示值。

属性

适用于

Explicit(NFloat to UIntPtr)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

重要

此 API 不符合 CLS。

将本机大小的浮点值显式转换为其最接近的可 UIntPtr 表示值。

public:
 static explicit operator UIntPtr(System::Runtime::InteropServices::NFloat value);
[System.CLSCompliant(false)]
public static explicit operator UIntPtr (System.Runtime.InteropServices.NFloat value);
[<System.CLSCompliant(false)>]
static member op_Explicit : System.Runtime.InteropServices.NFloat -> unativeint
Public Shared Narrowing Operator CType (value As NFloat) As UIntPtr

参数

value
NFloat

要转换的值。

返回

UIntPtr

unativeint

value 转换为其最接近的可 UIntPtr 表示值。

属性

适用于

Explicit(NFloat to IntPtr)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

将本机大小的浮点值显式转换为其最接近的可 IntPtr 表示值。

public:
 static explicit operator IntPtr(System::Runtime::InteropServices::NFloat value);
public static explicit operator IntPtr (System.Runtime.InteropServices.NFloat value);
static member op_Explicit : System.Runtime.InteropServices.NFloat -> nativeint
Public Shared Narrowing Operator CType (value As NFloat) As IntPtr

参数

value
NFloat

要转换的值。

返回

IntPtr

nativeint

value 转换为其最接近的可 IntPtr 表示值。

适用于

Explicit(NFloat to UInt32)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

重要

此 API 不符合 CLS。

将本机大小的浮点值显式转换为其最接近的可 UInt32 表示值。

public:
 static explicit operator System::UInt32(System::Runtime::InteropServices::NFloat value);
[System.CLSCompliant(false)]
public static explicit operator uint (System.Runtime.InteropServices.NFloat value);
[<System.CLSCompliant(false)>]
static member op_Explicit : System.Runtime.InteropServices.NFloat -> uint32
Public Shared Narrowing Operator CType (value As NFloat) As UInteger

参数

value
NFloat

要转换的值。

返回

value 转换为其最接近的可 UInt32 表示值。

属性

适用于

Explicit(NFloat to Int64)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

将本机大小的浮点值显式转换为其最接近的可 Int64 表示值。

public:
 static explicit operator long(System::Runtime::InteropServices::NFloat value);
public static explicit operator long (System.Runtime.InteropServices.NFloat value);
static member op_Explicit : System.Runtime.InteropServices.NFloat -> int64
Public Shared Narrowing Operator CType (value As NFloat) As Long

参数

value
NFloat

要转换的值。

返回

value 转换为其最接近的可 Int64 表示值。

适用于

Explicit(Decimal to NFloat)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

将值 Decimal 显式转换为其最接近的可表示本机大小的浮点值。

public:
 static explicit operator System::Runtime::InteropServices::NFloat(System::Decimal value);
public static explicit operator System.Runtime.InteropServices.NFloat (decimal value);
static member op_Explicit : decimal -> System.Runtime.InteropServices.NFloat
Public Shared Narrowing Operator CType (value As Decimal) As NFloat

参数

value
Decimal

要转换的值。

返回

value 转换为其最接近的可表示本机大小的浮点值。

适用于

Explicit(NFloat to Int16)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

将本机大小的浮点值显式转换为其最接近的可 Int16 表示值。

public:
 static explicit operator short(System::Runtime::InteropServices::NFloat value);
public static explicit operator short (System.Runtime.InteropServices.NFloat value);
static member op_Explicit : System.Runtime.InteropServices.NFloat -> int16
Public Shared Narrowing Operator CType (value As NFloat) As Short

参数

value
NFloat

要转换的值。

返回

value 转换为其最接近的可 Int16 表示值。

适用于

Explicit(NFloat to Int128)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

将本机大小的浮点值显式转换为其最接近的可 Int128 表示值。

public:
 static explicit operator Int128(System::Runtime::InteropServices::NFloat value);
public static explicit operator Int128 (System.Runtime.InteropServices.NFloat value);
static member op_Explicit : System.Runtime.InteropServices.NFloat -> Int128
Public Shared Narrowing Operator CType (value As NFloat) As Int128

参数

value
NFloat

要转换的值。

返回

value 转换为其最接近的可 Int128 表示值。

适用于

Explicit(NFloat to Half)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

将本机大小的浮点值显式转换为其最接近的可 Half 表示值。

public:
 static explicit operator Half(System::Runtime::InteropServices::NFloat value);
public static explicit operator Half (System.Runtime.InteropServices.NFloat value);
static member op_Explicit : System.Runtime.InteropServices.NFloat -> Half
Public Shared Narrowing Operator CType (value As NFloat) As Half

参数

value
NFloat

要转换的值。

返回

value 转换为其最接近的可 Half 表示值。

适用于

Explicit(NFloat to Decimal)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

将本机大小的浮点值显式转换为其最接近的可 Decimal 表示值。

public:
 static explicit operator System::Decimal(System::Runtime::InteropServices::NFloat value);
public static explicit operator decimal (System.Runtime.InteropServices.NFloat value);
static member op_Explicit : System.Runtime.InteropServices.NFloat -> decimal
Public Shared Narrowing Operator CType (value As NFloat) As Decimal

参数

value
NFloat

要转换的值。

返回

value 转换为其最接近的可 Decimal 表示值。

适用于

Explicit(NFloat to Char)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

将本机大小的浮点值显式转换为其最接近的可 Char 表示值。

public:
 static explicit operator char(System::Runtime::InteropServices::NFloat value);
public static explicit operator char (System.Runtime.InteropServices.NFloat value);
static member op_Explicit : System.Runtime.InteropServices.NFloat -> char
Public Shared Narrowing Operator CType (value As NFloat) As Char

参数

value
NFloat

要转换的值。

返回

value 转换为其最接近的可 Char 表示值。

适用于

Explicit(NFloat to Byte)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

将本机大小的浮点值显式转换为其最接近的可 Byte 表示值。

public:
 static explicit operator System::Byte(System::Runtime::InteropServices::NFloat value);
public static explicit operator byte (System.Runtime.InteropServices.NFloat value);
static member op_Explicit : System.Runtime.InteropServices.NFloat -> byte
Public Shared Narrowing Operator CType (value As NFloat) As Byte

参数

value
NFloat

要转换的值。

返回

value 转换为其最接近的可 Byte 表示值。

适用于

Explicit(Int128 to NFloat)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

将 显式转换为 Int128 其最接近的可表示本机大小的浮点值。

public:
 static explicit operator System::Runtime::InteropServices::NFloat(Int128 value);
public static explicit operator System.Runtime.InteropServices.NFloat (Int128 value);
static member op_Explicit : Int128 -> System.Runtime.InteropServices.NFloat
Public Shared Narrowing Operator CType (value As Int128) As NFloat

参数

value
Int128

要转换的值。

返回

value 转换为其最接近的可表示本机大小的浮点值。

适用于

Explicit(Double to NFloat)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

将值 Double 显式转换为其最接近的可表示本机大小的浮点值。

public:
 static explicit operator System::Runtime::InteropServices::NFloat(double value);
public static explicit operator System.Runtime.InteropServices.NFloat (double value);
static member op_Explicit : double -> System.Runtime.InteropServices.NFloat
Public Shared Narrowing Operator CType (value As Double) As NFloat

参数

value
Double

要转换的值。

返回

value 转换为其最接近的可表示本机大小的浮点值。

适用于

Explicit(NFloat to Int32)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

将本机大小的浮点值显式转换为其最接近的可 Int32 表示值。

public:
 static explicit operator int(System::Runtime::InteropServices::NFloat value);
public static explicit operator int (System.Runtime.InteropServices.NFloat value);
static member op_Explicit : System.Runtime.InteropServices.NFloat -> int
Public Shared Narrowing Operator CType (value As NFloat) As Integer

参数

value
NFloat

要转换的值。

返回

value 转换为其最接近的可 Int32 表示值。

适用于