Microsoft.JScript.Vsa.VsaEngine.LoadCompiledState C# (CSharp) Method

LoadCompiledState() protected method

protected LoadCompiledState ( ) : Assembly
return System.Reflection.Assembly
      protected override Assembly LoadCompiledState(){
        Debug.Assert(this.haveCompiledState);
        byte[] pe;
        byte[] pdb;
        if (!this.genDebugInfo) {
          System.Security.Policy.Evidence compilationEvidence = this.CompilerGlobals.compilationEvidence;
          System.Security.Policy.Evidence executionEvidence = this.executionEvidence;          
          if (compilationEvidence == null && executionEvidence == null || 
              compilationEvidence != null && compilationEvidence.Equals(executionEvidence))
            return this.compilerGlobals.assemblyBuilder;
        }
        // we need to save/reload to properly associate debug symbols with the assembly
        this.DoSaveCompiledState(out pe, out pdb);
        return Assembly.Load(pe, pdb, this.executionEvidence);
      }