Click or drag to resize

LeftShiftEvaluateConstants Method

Perform a left 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 left 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