System.CodeDom.Compiler.CodeCompiler.FromSource C# (CSharp) Method

FromSource() protected method

protected FromSource ( CompilerParameters options, string source ) : CompilerResults
options CompilerParameters
source string
return CompilerResults
         protected virtual CompilerResults FromSource(CompilerParameters options, string source) {
             if( options == null) {
                 throw new ArgumentNullException("options");
             }

            new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand();

            string[] sources = new string[1];
            sources[0] = source;

            return FromSourceBatch(options, sources);
        }