PinValue.Explicit 操作员

定义

重载

Explicit(PinValue to Boolean)

转换为字节。 true返回 on Highfalse onLow

Explicit(PinValue to Byte)

转换为字节。 在 上返回 1,在 High上返回 0 Low

Explicit(PinValue to Int32)

转换为 int。在 上返回 1,在 High上返回 0 Low

Explicit(PinValue to Boolean)

转换为字节。 true返回 on Highfalse onLow

public static explicit operator bool(System.Device.Gpio.PinValue value);
static member op_Explicit : System.Device.Gpio.PinValue -> bool
Public Shared Narrowing Operator CType (value As PinValue) As Boolean

参数

value
PinValue

要转换的 PinValue

返回

适用于

Explicit(PinValue to Byte)

转换为字节。 在 上返回 1,在 High上返回 0 Low

public static explicit operator byte(System.Device.Gpio.PinValue value);
static member op_Explicit : System.Device.Gpio.PinValue -> byte
Public Shared Narrowing Operator CType (value As PinValue) As Byte

参数

value
PinValue

要转换的 PinValue

返回

适用于

Explicit(PinValue to Int32)

转换为 int。在 上返回 1,在 High上返回 0 Low

public static explicit operator int(System.Device.Gpio.PinValue value);
static member op_Explicit : System.Device.Gpio.PinValue -> int
Public Shared Narrowing Operator CType (value As PinValue) As Integer

参数

value
PinValue

要转换的 PinValue

返回

适用于