16

Saw this in a previous developer's code which is currently in production.

public bool reset;
public bool Reset
{
get{ return reset; }
}

This was done for most if not all the properties.

Comments
  • 2
    Language?
  • 5
    Looks like C# to me. Looks like a simple accident coupled with a lack of code review.

    Though they probably should have gone with:
    public bool Reset {
    get;
    private set;
    }
  • 1
    Looks java to me as there is no set
Add Comment