Commit Graph
5 Commits
Author SHA1 Message Date
dualfroz 05f5fc4dc9 Describe IncludePublicFields as a fallback and write a shadowed field once 2026-09-23 11:51:34 +02:00
dualfroz f078e2a2c0 Fall back to public fields only when a type exposes no properties 2026-09-23 10:20:34 +02:00
dualfroz 209a7d0707 feat: add IncludePublicFields option to JsonSerializeOptions
Allow the JSON serializer to include public instance fields in the
output in addition to public properties, controlled by the new
JsonSerializeOptions.IncludePublicFields flag (default false to keep
existing behaviour). Field metadata is cached per type like enum and
property reflection lookups.

Closes #3920
2026-09-06 02:00:33 +02:00
dualfroz 44df43fabd docs: document default values for Filters properties in XML docs
Continues the work started for #5917 (already covered Targets, Layouts,
LayoutRenderers and Target Wrappers), extending the same pattern to the
NLog.Filters namespace so default values show up in IntelliSense and the
generated API docs.

Adds a regression test that scans all settable NLog.Filters properties
against the generated XML documentation file and fails if any of them is
missing a documented default value.
2026-08-28 13:24:33 +02:00
dualfroz 4640c55582 docs: document default values for Filters properties in XML docs
Continues the work started for #5917 (already covered Targets, Layouts,
LayoutRenderers and Target Wrappers), extending the same pattern to the
NLog.Filters namespace so default values show up in IntelliSense and the
generated API docs.

Adds a regression test that scans all settable NLog.Filters properties
against the generated XML documentation file and fails if any of them is
missing a documented default value.
2026-09-05 18:31:42 +02:00