Click or drag to resize

PositiveEvaluateConstant Method

Make a constant object positive. Supported types are: string, bool, enum, decimal, double, float, ulong, long, uint, int, ushort, short, char, byte, sbyte.

Namespace:  Nova.CodeDOM
Assembly:  Nova.CodeDOM (in Nova.CodeDOM.dll) Version: 7.44.8391.13415
Syntax
C#
protected override Object EvaluateConstant(
	Object constant
)

Parameters

constant
Type: SystemObject

Return Value

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