本文整理汇总了C#中Mono.CSharp.CompilerSettings.SetNewDynamicRuntimeEnable方法的典型用法代码示例。如果您正苦于以下问题:C# CompilerSettings.SetNewDynamicRuntimeEnable方法的具体用法?C# CompilerSettings.SetNewDynamicRuntimeEnable怎么用?C# CompilerSettings.SetNewDynamicRuntimeEnable使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mono.CSharp.CompilerSettings
的用法示例。
在下文中一共展示了CompilerSettings.SetNewDynamicRuntimeEnable方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ParseOption
//.........这里部分代码省略.........
Error_RequiresArgument (option);
return ParseResult.Error;
}
switch (value.ToLowerInvariant ()) {
case "none":
settings.Inlining = InliningMode.None;
break;
case "explicit":
settings.Inlining = InliningMode.Explicit;
break;
case "any":
settings.Inlining = InliningMode.Any;
break;
default:
report.Error (1672, "Invalid -inline option `{0}'. Valid options are `none', `explicit', `any'",
value);
return ParseResult.Error;
}
return ParseResult.Success;
case "/autoseal":
case "/autoseal+":
settings.AutoSeal = true;
return ParseResult.Success;
case "/autoseal-":
settings.AutoSeal = false;
return ParseResult.Success;
case "/newdynamic":
case "/newdynamic+":
settings.SetNewDynamicRuntimeEnable(true);
return ParseResult.Success;
case "/newdynamic-":
settings.SetNewDynamicRuntimeEnable(false);
return ParseResult.Success;
case "/autoseal_verbosity":
case "/autoseal_verbosity+":
settings.AutoSealVerbosity = true;
return ParseResult.Success;
case "/autoseal_verbosity-":
settings.AutoSealVerbosity = false;
return ParseResult.Success;
case "/dynamic-":
settings.AllowDynamic = false;
return ParseResult.Success;
case "/d":
case "/define": {
if (value.Length == 0) {
Error_RequiresArgument (option);
return ParseResult.Error;
}
foreach (string d in value.Split (argument_value_separator)) {
string conditional = d.Trim ();
string conditionalValue = "true"; // NOTE: This is only ever used by PlayScript!
string[] conditionalArgs = conditional.Split (new char[] { '=' });
if (conditionalArgs.Length == 2) {
conditional = conditionalArgs [0].Trim ();