Remove LazyInitializer usage from corelib (#44409)
authorStephen Toub <stoub@microsoft.com>
Thu, 12 Nov 2020 14:33:57 +0000 (09:33 -0500)
committerGitHub <noreply@github.com>
Thu, 12 Nov 2020 14:33:57 +0000 (09:33 -0500)
commit731dee4a8d9ad231826106ad59d3a5841738e774
tree38bb42635cfbbaa107d7c44103ce426896f2f103
parent3b5a94c879fba405dc2f7ea16fdec14cd71989f1
Remove LazyInitializer usage from corelib (#44409)

It's fine for higher layers, but in corelib we don't want to forcibly prevent LazyInitializer from being trimmed nor pay the overheads of additional cached delegates.
src/libraries/System.Private.CoreLib/src/System/Environment.GetFolderPathCore.Unix.cs
src/libraries/System.Private.CoreLib/src/System/IO/BufferedStream.cs
src/libraries/System.Private.CoreLib/src/System/IO/Stream.cs
src/libraries/System.Private.CoreLib/src/System/Resources/ResourceReader.Core.cs
src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/ConcurrentExclusiveSchedulerPair.cs
src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs
src/mono/netcore/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshal.Mono.cs
src/mono/netcore/System.Private.CoreLib/src/System/RuntimeType.Mono.cs