I am trying to figure out a function to see if the current number exists in the sudoku block already. The full sudoku grid is represented by a 2d array of integers. Dont have much so far, still thinking about how I can do this, but all of this coding has fried my brain and im stuck. Ill probably say duh.

Code:
private Boolean IsCurrentNumberInBlock(int xloc, int yloc, int[,] ar)
        {

        }