Noncompliant Code Example:
class User
{
public int Age { get; set; }
}
...
LogContext.PushProperty("User", new User());
Compliant Solution:
class User
{
public int Age { get; set; }
}
...
LogContext.PushProperty("User", new User(), true);
// or
LogContext.PushProperty("User", new User(), false);