Table of Contents

Or Method

Definition

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

Or<T>(T, T)

Performs a bitwise logical disjunction (OR) operation of the two specified values.

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

Parameters

x T

The first value to OR.

y T

The second value to OR.

Returns

T

The result of x OR 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.