Wednesday, April 15, 2015

c# getters and setters

I keep having to lookup the c# syntax for getters and setters.  Nothing to fancy, just figure I'll leave myself a bread crumb.


    private int iCurCell;
    public int CurCell
    {
        get { return iCurCell; }
        set { this.iCurCell = value; }
    }

No comments: