当前位置: 首页>>代码示例>>C#>>正文


C# CompilerSettings.SetNewDynamicRuntimeEnable方法代码示例

本文整理汇总了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 ();
开发者ID:rlfqudxo,项目名称:playscript-mono,代码行数:67,代码来源:settings.cs


注:本文中的Mono.CSharp.CompilerSettings.SetNewDynamicRuntimeEnable方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。