Table of Contents

RightShift Method

Definition

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

RightShift<T>(T, T)

Performs an arithmetic right shift (>>) operation.

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

Parameters

x T

The bit pattern to be shifted.

y T

The number of bits to shift the bit pattern.

Returns

T

The result of shifting the bit pattern.

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, sbyte, ushort.