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<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>
可写入部分。