Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 0c4845c

Browse files
Atsushi Kanamoriatsushikan
authored andcommitted
Delete non-shared version and switch over to shared version.
1 parent 7bb7921 commit 0c4845c

File tree

4 files changed

+3
-320
lines changed

4 files changed

+3
-320
lines changed

src/mscorlib/System.Private.CoreLib.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -455,10 +455,6 @@
455455
<Compile Include="$(BclSourcesRoot)\System\Reflection\Emit\TypeToken.cs" />
456456
<Compile Include="$(BclSourcesRoot)\System\Reflection\Emit\XXXOnTypeBuilderInstantiation.cs" />
457457
</ItemGroup>
458-
<ItemGroup>
459-
<Compile Include="$(BclSourcesRoot)\System\Reflection\Runtime\Assemblies\AssemblyNameHelpers.cs" />
460-
<Compile Include="$(BclSourcesRoot)\System\Reflection\Runtime\Assemblies\AssemblyNameLexer.cs" />
461-
</ItemGroup>
462458
<ItemGroup>
463459
<Compile Include="$(BclSourcesRoot)\System\Reflection\Metadata\AssemblyExtensions.cs" />
464460
</ItemGroup>

src/mscorlib/src/System/Reflection/AssemblyName.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ namespace System.Reflection
1919
using System;
2020
using System.IO;
2121
using System.Configuration.Assemblies;
22-
using System.Reflection.Runtime.Assemblies;
2322
using System.Runtime.CompilerServices;
2423
using CultureInfo = System.Globalization.CultureInfo;
2524
using System.Runtime.Serialization;
@@ -282,7 +281,9 @@ public String FullName
282281
{
283282
if (this.Name == null)
284283
return string.Empty;
285-
return AssemblyNameHelpers.ComputeDisplayName(this);
284+
// Do not call GetPublicKeyToken() here - that latches the result into AssemblyName which isn't a side effect we want.
285+
byte[] pkt = _PublicKeyToken ?? nGetPublicKeyToken();
286+
return AssemblyNameFormatter.ComputeDisplayName(Name, Version, CultureName, pkt, Flags, ContentType);
286287
}
287288
}
288289

src/mscorlib/src/System/Reflection/Runtime/Assemblies/AssemblyNameHelpers.cs

Lines changed: 0 additions & 174 deletions
This file was deleted.

src/mscorlib/src/System/Reflection/Runtime/Assemblies/AssemblyNameLexer.cs

Lines changed: 0 additions & 140 deletions
This file was deleted.

0 commit comments

Comments
 (0)