Unexpected symbol - but I can't see where.

List GetRowCol(float x, float y) {
List list = new List();
}

Or am I overlooking something really fundamental here?

You can’t create functions inside of other functions. In this case, you need to move GetRowCol() method definition outside of Click1.