Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 265 Bytes

MA0143.md

File metadata and controls

14 lines (12 loc) · 265 Bytes

MA0143 - Primary constructor parameters should be readonly

The rule reports all assignments to primary constructor parameters

class Sample(int p)
{
    void A()
    {
        p = 0; // non-compliant
        (p, _) = (0, 1); // non-compliant
    }
}