本文整理匯總了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 ();