We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ccb6b01 + a094729 commit 6c9f2f5Copy full SHA for 6c9f2f5
src/Serilog.Expressions/Expressions/StaticMemberNameResolver.cs
@@ -28,7 +28,11 @@ public class StaticMemberNameResolver : NameResolver
28
/// Create a <see cref="StaticMemberNameResolver"/> that returns members of the specified <see cref="Type"/>.
29
/// </summary>
30
/// <param name="type">A <see cref="Type"/> with public static members implementing runtime functions.</param>
31
- public StaticMemberNameResolver(Type type)
+ public StaticMemberNameResolver(
32
+#if NET6_0_OR_GREATER
33
+ [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicMethods)]
34
+#endif
35
+ Type type)
36
{
37
if (type == null) throw new ArgumentNullException(nameof(type));
38
0 commit comments