語言

PinValue.Explicit 運算子

定義

多載

名稱 Description
Explicit(PinValue to Boolean)

轉換成位元組。 返回 true 於 High, false 於 Low

Explicit(PinValue to Byte)

轉換成位元組。 回傳 1 對 High,0 回 Low

Explicit(PinValue to Int32)

轉化為智力。回傳 1 對 High,0 回 Low

Explicit(PinValue to Boolean)

轉換成位元組。 返回 true 於 High, false 於 Low

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)

轉化為智力。回傳 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 轉換

傳回

適用於