Table of Contents

ExclusiveOr Method

Definition

Namespace
Cuemon
Assemblies
Cuemon.Core.dll
Source
src/Cuemon.Core/Calculator.cs

ExclusiveOr<T>(T, T)

Performs a bitwise exclusive or (XOR) operation of the two specified values.

public static T ExclusiveOr<T>(T x, T y) where T : struct, IConvertible

Parameters

x T

The first value to XOR.

y T

The second value to XOR.

Returns

T

The result of x XOR y.

Type Parameters

T

The type of the values for the operand operation.

Exceptions

TypeArgumentException

T is outside the range of allowed types.
Allowed types are: byte, short, int, long, sbyte, ushort, uint or ulong.