Skip to content

Commit 495b623

Browse files
committed
Use resource string
1 parent 42ee65b commit 495b623

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/mono/System.Private.CoreLib/src/System/Reflection/Metadata/AssemblyExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public static void ApplyUpdate(Assembly assembly, ReadOnlySpan<byte> metadataDel
3535

3636
// System.Private.CoreLib is not editable
3737
if (runtimeAssembly == typeof(AssemblyExtensions).Assembly)
38-
throw new InvalidOperationException ("The assembly can not be edited or changed.");
38+
throw new InvalidOperationException (SR.InvalidOperation_AssemblyNotEditable);
3939

4040
#if !FEATURE_METADATA_UPDATE
4141
throw new NotSupportedException ("Method body replacement not supported in this runtime");

0 commit comments

Comments
 (0)