Channel<TWrite,TRead>.Implicit 運算子
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Implicit(Channel<TWrite,TRead> to ChannelReader<TRead>) |
從 Channel<TWrite,TRead> 隱含轉換成其可讀取的一面。 |
Implicit(Channel<TWrite,TRead> to ChannelWriter<TWrite>) |
從 Channel<TWrite,TRead> 隱含轉換成其可寫入的一面。 |
Implicit(Channel<TWrite,TRead> to ChannelReader<TRead>)
- 來源:
- Channel_2.cs
- 來源:
- Channel_2.cs
- 來源:
- Channel_2.cs
- 來源:
- Channel_2.cs
從 Channel<TWrite,TRead> 隱含轉換成其可讀取的一面。
public:
static operator System::Threading::Channels::ChannelReader<TRead> ^(System::Threading::Channels::Channel<TWrite, TRead> ^ channel);
public static implicit operator System.Threading.Channels.ChannelReader<TRead> (System.Threading.Channels.Channel<TWrite,TRead> channel);
static member op_Implicit : System.Threading.Channels.Channel<'Write, 'Read> -> System.Threading.Channels.ChannelReader<'Read>
Public Shared Widening Operator CType (channel As Channel(Of TWrite, TRead)) As ChannelReader(Of TRead)
參數
- channel
- Channel<TWrite,TRead>
要轉換的 Channel<TWrite,TRead>。
傳回
ChannelReader<TRead>
可讀取的一面。
適用於
Implicit(Channel<TWrite,TRead> to ChannelWriter<TWrite>)
- 來源:
- Channel_2.cs
- 來源:
- Channel_2.cs
- 來源:
- Channel_2.cs
- 來源:
- Channel_2.cs
從 Channel<TWrite,TRead> 隱含轉換成其可寫入的一面。
public:
static operator System::Threading::Channels::ChannelWriter<TWrite> ^(System::Threading::Channels::Channel<TWrite, TRead> ^ channel);
public static implicit operator System.Threading.Channels.ChannelWriter<TWrite> (System.Threading.Channels.Channel<TWrite,TRead> channel);
static member op_Implicit : System.Threading.Channels.Channel<'Write, 'Read> -> System.Threading.Channels.ChannelWriter<'Write>
Public Shared Widening Operator CType (channel As Channel(Of TWrite, TRead)) As ChannelWriter(Of TWrite)
參數
- channel
- Channel<TWrite,TRead>
要轉換的 Channel<TWrite,TRead>。
傳回
ChannelWriter<TWrite>
可寫入的一面。