共用方式為


Channel<TWrite,TRead>.Implicit 運算子

定義

多載

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)

參數

傳回

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)

參數

傳回

ChannelWriter<TWrite>

可寫入的一面。

適用於