Click or drag to resize

ScriptEngineDisableListIndexTypeRestriction Property

Enables or disables type restriction for array and list elements retrieved by index.

Namespace: Microsoft.ClearScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.4.5
Syntax
public bool DisableListIndexTypeRestriction { get; set; }

Property Value

Boolean

Implements

IScriptEngineDisableListIndexTypeRestriction
Remarks
In ClearScript 5.4.4 and earlier, indexed array and list elements were exempt from type restriction. ClearScript 5.4.5 introduced a breaking change to correct this, but you can set this property to true to restore the exemption if you have older script code that depends on it.
See Also