Server.ScriptCompiler.GetCompilerOptions C# (CSharp) Méthode

GetCompilerOptions() public static méthode

public static GetCompilerOptions ( bool debug ) : string
debug bool
Résultat string
		public static string GetCompilerOptions( bool debug )
		{
			StringBuilder sb = null;

			if( !debug )
				AppendCompilerOption( ref sb, "/optimize" );

			//These two defines are legacy, ie, depreciated.
			if( Core.Is64Bit )
				AppendCompilerOption( ref sb, "/d:x64" );

			AppendCompilerOption( ref sb, "/d:Framework_4_0" );

			return (sb == null ? null : sb.ToString());
		}