語言

IBitwiseOperators<TSelf,TOther,TResult>.ExclusiveOr 運算子

定義

計算兩個值的獨佔或兩個值。

public:
 static TResult operator ^(TSelf left, TOther right);
public static abstract TResult operator ^(TSelf left, TOther right);
static member ( ^^^ ) : 'Self * 'Other -> 'Result
Public Shared Operator Xor (left As TSelf, right As TOther) As TResult

參數

left
TSelf

與 的 XOR right值 。

right
TOther

與 的 XOR left值 。

傳回

TResult

與的異或leftright。

適用於