Descent.Model.Board.Board.this C# (CSharp) Метод

this() публичный Метод

Access a point on the board
public this ( Point p ) : Square
p Point /// The point to be accessed ///
Результат Square
        public Square this[Point p]
        {
            get
            {
                Contract.Requires(p.X >= 0 && p.Y >= 0 && p.X < Width && p.Y < Height);
                return board[p.X, p.Y];
            }

            set
            {
                Contract.Requires(p.X >= 0 && p.Y >= 0 && p.X < Width && p.Y < Height);
                board[p.X, p.Y] = value;
            }
        }

Same methods

Board::this ( int x, int y ) : Square