Chess.Domain.Board.NewSquare C# (CSharp) 메소드

NewSquare() 개인적인 정적인 메소드

private static NewSquare ( int column, int row, ChessPiece piece ) : Square
column int
row int
piece Chess.Data.Entities.ChessPiece
리턴 Chess.Data.Entities.Square
        private static Square NewSquare(int column, int row, ChessPiece piece)
        {
            if (piece != null)
            {
                piece.CurrentColumn = column;
                piece.CurrentRow = row;
                piece.Alive = true;
            }

            return new Square { Column = column, Row = row, ChessPiece = piece };
        }