Click or drag to resize

IScriptEngineAcceptEnumAsUnderlyingType Property

Controls whether scripts can pass integral values to enumeration-typed host properties or parameters.

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

Property Value

Boolean
Remarks
When this property is set to true, the script engine accepts integral values for enumeration-typed host properties and parameters. Note that the default method binding algorithm cannot support this property; it must be used in conjunction with DisableDynamicBinding or UseReflectionBindFallback. The script engine makes no attempt to validate integral values passed from script code against the defined members of the target enumeration type.
See Also