Click or drag to resize

RightShiftEvaluateConstants Method

Perform a right shift of a constant object by a constant amount. Supported left-side types are: enum, ulong, long, uint, int, ushort, short, char, byte, sbyte. Right-side type should be 'int' with a 5 or 6 bit value.

Namespace:  Nova.CodeDOM
Assembly:  Nova.CodeDOM (in Nova.CodeDOM.dll) Version: 7.44.8391.13415
Syntax
C#
protected override Object EvaluateConstants(
	Object leftConstant,
	Object rightConstant
)

Parameters

leftConstant
Type: SystemObject
rightConstant
Type: SystemObject

Return Value

Type: Object
The left constant shifted right by the right constant amount, using the appropriate result type, including promoting smaller types to int. Returns null if the operation is invalid.
See Also