Noncompliant Code Example:
class User
{
public int Age { get; set; }
}
...
Log.Information("The user is {MyUser}", new User());
Compliant Solution:
class User
{
public int Age { get; set; }
}
...
Log.Information("The user is {@MyUser}", new User());
// or
Log.Information("The user is {$MyUser}", new User());