Channel<TWrite,TRead> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides a base class for channels that support reading elements of type TRead
and writing elements of type TWrite
.
generic <typename TWrite, typename TRead>
public ref class Channel abstract
public abstract class Channel<TWrite,TRead>
type Channel<'Write, 'Read> = class
Public MustInherit Class Channel(Of TWrite, TRead)
Type Parameters
- TWrite
Specifies the type of data that may be written to the channel.
- TRead
Specifies the type of data that may be read from the channel.
- Inheritance
-
Channel<TWrite,TRead>
- Derived
Constructors
Channel<TWrite,TRead>() |
Initializes an instance of the Channel<TWrite,TRead> class. |
Properties
Reader |
Gets the readable half of this channel. |
Writer |
Gets the writable half of this channel. |
Methods
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |
Operators
Implicit(Channel<TWrite,TRead> to ChannelReader<TRead>) |
Implicit cast from a Channel<TWrite,TRead> to its readable half. |
Implicit(Channel<TWrite,TRead> to ChannelWriter<TWrite>) |
Implicit cast from a Channel<TWrite,TRead> to its writable half. |