ScriptCs.Engine.Roslyn.CSharpScriptInMemoryEngine.LoadAssembly C# (CSharp) Метод

LoadAssembly() защищенный Метод

protected LoadAssembly ( byte exeBytes, byte pdbBytes ) : Assembly
exeBytes byte
pdbBytes byte
Результат System.Reflection.Assembly
        protected override Assembly LoadAssembly(byte[] exeBytes, byte[] pdbBytes)
        {
            _log.Debug("Loading assembly from memory.");

            // this is required for debugging. otherwise, the .dll is not related to the .pdb
            // there might be ways of doing this without "loading", haven't found one yet
            return AppDomain.CurrentDomain.Load(exeBytes, pdbBytes);
        }