IBitwiseOperators<TSelf,TOther,TResult> 接口
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
定义一种机制,用于对两个值执行按位运算。
generic <typename TSelf, typename TOther, typename TResult>
where TSelf : IBitwiseOperators<TSelf, TOther, TResult>public interface class IBitwiseOperators
C#
public interface IBitwiseOperators<TSelf,TOther,TResult> where TSelf : IBitwiseOperators<TSelf,TOther,TResult>
type IBitwiseOperators<'Self, 'Other, 'Result (requires 'Self :> IBitwiseOperators<'Self, 'Other, 'Result>)> = interface
Public Interface IBitwiseOperators(Of TSelf, TOther, TResult)
- TSelf
实现此接口的类型。
- TOther
在具有 TSelf
的操作中使用的类型。
- TResult
包含 op TOther
的结果的类型TSelf
。
- 派生
Bitwise |
计算两个值的按位和 。 |
Bitwise |
计算两个值的按位或 。 |
Exclusive |
计算两个值的独占或两个值。 |
Ones |
计算给定值的补补表示形式。 |
产品 | 版本 |
---|---|
.NET | 7, 8, 9, 10 |