Skip to content

Commit 15664c3

Browse files
committed
Clarify MetadataLoadContext load wording
1 parent 92236e1 commit 15664c3

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/libraries/System.Reflection.MetadataLoadContext/src/Resources/Strings.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
<value>The assembly '{0}' has already loaded been loaded into this MetadataLoadContext.</value>
179179
</data>
180180
<data name="FileNotFoundAssembly" xml:space="preserve">
181-
<value>Could not find assembly '{0}'. Either explicitly load this assembly using a method such as LoadFromAssemblyPath() or use a MetadataAssemblyResolver that returns a valid assembly.</value>
181+
<value>Could not find assembly '{0}'. Use a MetadataAssemblyResolver that returns a valid assembly for this assembly name.</value>
182182
</data>
183183
<data name="FileNotFoundModule" xml:space="preserve">
184184
<value>Could not find the module file for '{0}'.</value>

src/libraries/System.Reflection.MetadataLoadContext/src/System/Reflection/MetadataLoadContext.Apis.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public MetadataLoadContext(MetadataAssemblyResolver resolver, string? coreAssemb
115115
}
116116

117117
/// <summary>
118-
/// Loads an assembly from a specific path on the disk and binds its assembly name to it in the MetadataLoadContext. If a prior
118+
/// Loads an assembly from a specific path on the disk into the MetadataLoadContext. If a prior
119119
/// assembly with the same name was already loaded into the MetadataLoadContext, the prior assembly will be returned. If the
120120
/// two assemblies do not have the same Mvid, this method throws a FileLoadException.
121121
/// </summary>
@@ -129,7 +129,7 @@ public Assembly LoadFromAssemblyPath(string assemblyPath)
129129
}
130130

131131
/// <summary>
132-
/// Loads an assembly from a byte array and binds its assembly name to it in the MetadataLoadContext. If a prior
132+
/// Loads an assembly from a byte array into the MetadataLoadContext. If a prior
133133
/// assembly with the same name was already loaded into the MetadataLoadContext, the prior assembly will be returned. If the
134134
/// two assemblies do not have the same Mvid, this method throws a FileLoadException.
135135
/// </summary>
@@ -143,7 +143,7 @@ public Assembly LoadFromByteArray(byte[] assembly)
143143
}
144144

145145
/// <summary>
146-
/// Loads an assembly from a stream and binds its assembly name to it in the MetadataLoadContext. If a prior
146+
/// Loads an assembly from a stream into the MetadataLoadContext. If a prior
147147
/// assembly with the same name was already loaded into the MetadataLoadContext, the prior assembly will be returned. If the
148148
/// two assemblies do not have the same Mvid, this method throws a FileLoadException.
149149
///

0 commit comments

Comments
 (0)