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<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<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>

可写入部分。

适用于