Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 235 Bytes

AnonymousObjectDestructuringProblem.md

File metadata and controls

11 lines (9 loc) · 235 Bytes

Anonymous objects must be destructured

Noncompliant Code Examples:

Log.Error("Processed {Position}", new { x = 4, y = 2});

Compliant Solution:

Log.Error("Processed {@Position}", new { x = 4, y = 2});