Add linker annotation to LazyDebugView to avoid warnings (#39899)
authorVitek Karas <vitek.karas@microsoft.com>
Sat, 25 Jul 2020 18:11:14 +0000 (11:11 -0700)
committerGitHub <noreply@github.com>
Sat, 25 Jul 2020 18:11:14 +0000 (11:11 -0700)
commit5ff4db1a5d22efb02300457d9a7a3154a7a5b0cb
tree02ea402d5ea7d9c588ed142d18a24e0d54d9fe8e
parent6ca600396ee2e80e8bf93c72c2b5439aadc86073
Add linker annotation to LazyDebugView to avoid warnings (#39899)

In reality this is only to get rid of the warnings, the class is never instatiated by the managed code, so the annotation has no effect on including more code.
When in debugger the class is instatiated with the same T of an existing Lazy<T> which has the same annotation, so the T will always fulfill the annotation's requirements.
src/libraries/System.Private.CoreLib/src/System/Lazy.cs