if (s_loadfile.TryGetValue(normalizedPath, out result))
return result;
- AssemblyLoadContext alc = new IndividualAssemblyLoadContext(String.Format("Assembly.LoadFile({0})", path));
+ AssemblyLoadContext alc = new IndividualAssemblyLoadContext(string.Format("Assembly.LoadFile({0})", path));
result = alc.LoadFromAssemblyPath(normalizedPath);
s_loadfile.Add(normalizedPath, result);
}
{
}
- public AssemblyLoadContext(string name, bool isCollectible = true) : this(false, isCollectible, name)
+ public AssemblyLoadContext(string name, bool isCollectible = false) : this(false, isCollectible, name)
{
}
internal sealed class IndividualAssemblyLoadContext : AssemblyLoadContext
{
- internal IndividualAssemblyLoadContext(String name) : base(false, false, name)
+ internal IndividualAssemblyLoadContext(string name) : base(false, false, name)
{
}
}