From 5aaf0c14c236a771e0460c963b5353300c029dd1 Mon Sep 17 00:00:00 2001 From: Stephen Toub Date: Thu, 5 Nov 2020 20:18:06 -0500 Subject: [PATCH] Remove silly ToString in GetCLRInstanceString (#44335) --- .../src/System/Runtime/Versioning/VersioningHelper.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libraries/System.Private.CoreLib/src/System/Runtime/Versioning/VersioningHelper.cs b/src/libraries/System.Private.CoreLib/src/System/Runtime/Versioning/VersioningHelper.cs index b552a4c..d26adc5 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Runtime/Versioning/VersioningHelper.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Runtime/Versioning/VersioningHelper.cs @@ -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) -- 2.7.4