Op Englesch liesen Editéieren

Deelen iwwer


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.

C#
public abstract class Channel<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

Applies to

Produkt Versiounen
.NET Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided), 2.1 (package-provided)