IScriptEngineMarshalEnumAsUnderlyingType Property |
Controls whether enumerations are converted to their underlying integral type when passed to script code.
Namespace: Microsoft.ClearScriptAssembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.5.1-preview
Syntaxbool MarshalEnumAsUnderlyingType { get; set; }Property MarshalEnumAsUnderlyingType As Boolean
Get
Set
property bool MarshalEnumAsUnderlyingType {
bool get ();
void set (bool value);
}abstract MarshalEnumAsUnderlyingType : bool with get, set
Property Value
Boolean
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