Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 257 Bytes

MA0007.md

File metadata and controls

19 lines (15 loc) · 257 Bytes

MA0007 - Add a comma after the last value

The last statement in a multi-line C# initializer or list is missing a trailing comma.

new Sample
{
    A = 0,
    B = 1  // non-compliant
};


// Should be
new Sample
{
    A = 0,
    B = 1,
};