File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -53,13 +53,13 @@ protected ScriptAssemblyLoadContext(bool isCollectible) :
53
53
/// </summary>
54
54
/// <param name="assemblyName">The assembly name.</param>
55
55
/// <returns><c>true</c> if the specified assembly is homogeneous; otherwise, <c>false</c>.</returns>
56
- protected internal virtual bool IsHomogeneousAssembly ( AssemblyName assemblyName ) =>
57
- assemblyName . Name switch
58
- {
59
- "mscorlib" or
60
- "Microsoft.CodeAnalysis.Scripting" => true ,
61
- _ => false
62
- } ;
56
+ protected internal virtual bool IsHomogeneousAssembly ( AssemblyName assemblyName )
57
+ {
58
+ var name = assemblyName . Name ;
59
+ return
60
+ string . Equals ( name , "mscorlib" , StringComparison . OrdinalIgnoreCase ) ||
61
+ string . Equals ( name , "Microsoft.CodeAnalysis.Scripting" , StringComparison . OrdinalIgnoreCase ) ;
62
+ }
63
63
64
64
/// <inheritdoc/>
65
65
protected override Assembly ? Load ( AssemblyName assemblyName ) => InvokeLoading ( assemblyName ) ;
@@ -70,7 +70,7 @@ protected internal virtual bool IsHomogeneousAssembly(AssemblyName assemblyName)
70
70
/// <summary>
71
71
/// Provides data for the <see cref="Loading"/> event.
72
72
/// </summary>
73
- public sealed class LoadingEventArgs : EventArgs
73
+ internal sealed class LoadingEventArgs : EventArgs
74
74
{
75
75
public LoadingEventArgs ( AssemblyName assemblyName )
76
76
{
You can’t perform that action at this time.
0 commit comments