/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Scripting/Core/Hosting/AssemblyLoader/AssemblyLoaderImpl.cs
26 строк
912 B
Tomáš Matoušek
Remove assembly loading light-up from scripting (#74409)
25 июл 2024, 03:39
Не верифицирован
25 июл 2024, 03:39
5998125
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.IO; using System.Reflection; namespace Microsoft.CodeAnalysis.Scripting.Hosting { internal abstract class AssemblyLoaderImpl(InteractiveAssemblyLoader loader) : IDisposable { internal readonly InteractiveAssemblyLoader Loader = loader; public static AssemblyLoaderImpl Create(InteractiveAssemblyLoader loader) #if NET => new CoreAssemblyLoaderImpl(loader); #else => new DesktopAssemblyLoaderImpl(loader); #endif public abstract Assembly LoadFromStream(Stream peStream, Stream pdbStream); public abstract AssemblyAndLocation LoadFromPath(string path); public abstract void Dispose(); } }