Bracket.Hosting.ZipArchiveDirectory.LoadAssemblyFromPath C# (CSharp) Method

LoadAssemblyFromPath() public method

public LoadAssemblyFromPath ( string path ) : Assembly
path string
return System.Reflection.Assembly
        public Assembly LoadAssemblyFromPath(string path)
        {
            ZipEntry entry = GetEntry(path);
            if (entry == null || entry.IsDirectory)
                return null;

            var asmStream = new MemoryStream();
            entry.Extract(asmStream);
            return Assembly.Load(asmStream.GetBuffer());
        }