public int this[Point p] { get { IntRow row = this.rows[p.y]; int col = row.cols[p.x]; return(col); } set { IntRow row = this.rows[p.y]; int[] cols = row.cols; cols[p.x] = value; } }
public int this[int x, int y] { get { IntRow row = this.rows[y]; int col = row.cols[x]; return(col); } set { IntRow row = this.rows[y]; int[] cols = row.cols; cols[x] = value; } }