IBitwiseOperators<TSelf,TOther,TResult> 接口

定义

定义一种机制,用于对两个值执行按位运算。

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

类型参数

TSelf

实现此接口的类型。

TOther

在具有 TSelf的操作中使用的类型。

TResult

包含 op TOther的结果的类型TSelf

派生

运算符

BitwiseAnd(TSelf, TOther)

计算两个值的按位和 。

BitwiseOr(TSelf, TOther)

计算两个值的按位或 。

ExclusiveOr(TSelf, TOther)

计算两个值的独占或两个值。

OnesComplement(TSelf)

计算给定值的补补表示形式。

适用于

产品 版本
.NET 7, 8, 9, 10