Table of Contents

And Method

Definition

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

And<T>(T, T)

Performs a a bitwise logical conjunction (AND) operation of the two specified values.

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

Parameters

x T

The first value to AND.

y T

The second value to AND.

Returns

T

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