Remove silly ToString in GetCLRInstanceString (#44335)
authorStephen Toub <stoub@microsoft.com>
Fri, 6 Nov 2020 01:18:06 +0000 (20:18 -0500)
committerGitHub <noreply@github.com>
Fri, 6 Nov 2020 01:18:06 +0000 (20:18 -0500)
src/libraries/System.Private.CoreLib/src/System/Runtime/Versioning/VersioningHelper.cs

index b552a4c..d26adc5 100644 (file)
@@ -84,8 +84,7 @@ namespace System.Runtime.Versioning
             // actually call GetRuntimeId() which is an ecall method and cannot be
             // directly called from outside of the corelib.
             // In CoreCLR, GetRuntimeId() gets the TLS index for the thread and adds 3 to that number.
-            int id = 3;
-            return id.ToString(CultureInfo.InvariantCulture);
+            return "3";
         }
 
         private static SxSRequirements GetRequirements(ResourceScope consumeAsScope, ResourceScope calleeScope)