MatrixWalk.MatrixRotatingWalk.FindAllFreeCell C# (CSharp) Method

FindAllFreeCell() private method

private FindAllFreeCell ( ) : void
return void
        private void FindAllFreeCell()
        {
            this.row = 0;
            this.col = 0;

            for (int currRow = 0; currRow < this.dimentions; currRow++)
            {
                for (int currCol = 0; currCol < this.dimentions; currCol++)
                {
                    if (this.matrix[currRow, currCol] == 0)
                    {
                        this.row = currRow;
                        this.col = currCol;
                        return;
                    }
                }
            }
        }