deepsourcestatus / test-repository

Getters and setters with a single statement in their bodies can be simplified CS-R1095
Anti-pattern
Major
8 months ago8 months old
Getter/setter can be simplified
 18            return _name;
 19        }
 20
 21        set 22        { 23            _name = value; 24        } 25    }
 26}
 27
Getter/setter can be simplified
 13    // Same as auto-property.
 14    public string Name
 15    {
 16        get 17        { 18            return _name; 19        } 20
 21        set
 22        {