Прочетете на английски Редактиране

Споделяне чрез


IBitwiseOperators<TSelf,TOther,TResult> Interface

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.

Defines a mechanism for performing bitwise operations over two values.

C#
public interface IBitwiseOperators<TSelf,TOther,TResult> where TSelf : IBitwiseOperators<TSelf,TOther,TResult>

Type Parameters

TSelf

The type that implements this interface.

TOther

The type that is used in the operation with TSelf.

TResult

The type that contains the result of TSelf op TOther.

Derived

Operators

BitwiseAnd(TSelf, TOther)

Computes the bitwise-and of two values.

BitwiseOr(TSelf, TOther)

Computes the bitwise-or of two values.

ExclusiveOr(TSelf, TOther)

Computes the exclusive-or of two values.

OnesComplement(TSelf)

Computes the ones-complement representation of a given value.

Applies to

Продукт Версии
.NET 7, 8, 9, 10