forked from Taritsyn/JavaScriptEngineSwitcher
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMsieConfiguration.cs
More file actions
51 lines (47 loc) · 1.51 KB
/
MsieConfiguration.cs
File metadata and controls
51 lines (47 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
namespace JavaScriptEngineSwitcher.Msie.Configuration
{
using System.Configuration;
/// <summary>
/// Configuration settings of MSIE JavaScript engine
/// </summary>
public sealed class MsieConfiguration : ConfigurationSection
{
/// <summary>
/// Gets or sets a flag for whether to enable script debugging features
/// (only works in the <code>ChakraIeJsRt</code> and <code>ChakraEdgeJsRt</code> modes)
/// </summary>
[ConfigurationProperty("enableDebugging", DefaultValue = false)]
public bool EnableDebugging
{
get { return (bool)this["enableDebugging"]; }
set { this["enableDebugging"] = value; }
}
/// <summary>
/// Gets or sets a JavaScript engine mode
/// </summary>
[ConfigurationProperty("engineMode", DefaultValue = JsEngineMode.Auto)]
public JsEngineMode EngineMode
{
get { return (JsEngineMode)this["engineMode"]; }
set { this["engineMode"] = value; }
}
/// <summary>
/// Gets or sets a flag for whether to use the ECMAScript 5 Polyfill
/// </summary>
[ConfigurationProperty("useEcmaScript5Polyfill", DefaultValue = false)]
public bool UseEcmaScript5Polyfill
{
get { return (bool)this["useEcmaScript5Polyfill"]; }
set { this["useEcmaScript5Polyfill"] = value; }
}
/// <summary>
/// Gets or sets a flag for whether to use the JSON2 library
/// </summary>
[ConfigurationProperty("useJson2Library", DefaultValue = false)]
public bool UseJson2Library
{
get { return (bool)this["useJson2Library"]; }
set { this["useJson2Library"] = value; }
}
}
}