TrueEvaluateConstant Method |
Determine if a constant object evaluates to true.
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 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