Don't trim compiler-generated anonymous types. (#18835)
authorBrian Robbins <brianrob@microsoft.com>
Thu, 12 Jul 2018 17:26:12 +0000 (10:26 -0700)
committerGitHub <noreply@github.com>
Thu, 12 Jul 2018 17:26:12 +0000 (10:26 -0700)
src/System.Private.CoreLib/ILLinkTrim.xml

index e4e83e3..5445899 100644 (file)
@@ -37,5 +37,7 @@
     <type fullname="System.Diagnostics.Tracing.EventPipe*" />
     <!-- Accessed via private reflection and by native code. -->
     <type fullname="System.Diagnostics.Tracing.RuntimeEventSource" />
+    <!-- Accessed via reflection in TraceLogging-style EventSource events. -->
+    <type fullname="*f__AnonymousType*" />
   </assembly>
 </linker>