diff --git a/src/libraries/System.Private.CoreLib/src/System/Resources/ResourceReader.Core.cs b/src/libraries/System.Private.CoreLib/src/System/Resources/ResourceReader.Core.cs index cc9e81d11ead6..f5ffae48fb861 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Resources/ResourceReader.Core.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Resources/ResourceReader.Core.cs @@ -69,7 +69,8 @@ private object DeserializeObject(int typeIndex) } // Issue https://github.com/dotnet/runtime/issues/39290 tracks finding an alternative to BinaryFormatter - private bool InitializeBinaryFormatter() { + private bool InitializeBinaryFormatter() + { if (!LocalAppContextSwitches.BinaryFormatterEnabled) { return false; // initialization failed