Click or drag to resize

ScriptEngineMarshalEnumAsUnderlyingType Property

Controls whether enumerations are converted to their underlying integral type when passed to script code.

Namespace: Microsoft.ClearScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.5.1-preview
Syntax
public bool MarshalEnumAsUnderlyingType { get; set; }

Property Value

Boolean

Implements

IScriptEngineMarshalEnumAsUnderlyingType
Remarks
When this property is set to true, the script engine converts enumerations to their underlying types when passing them to script code. This conversion is lossy and could break host method binding, property assignment, and other scenarios that rely on enumeration type identity. It is recommended that you use this property in conjunction with AcceptEnumAsUnderlyingType.
See Also