Пример #1
0
        public static GameRecord Parse(string gameString)
        {
            string     error;
            GameRecord gr = new GameRecord();

            return(GameStringParser.Parse(gameString, out error, gr) ? gr : null);
        }
Пример #2
0
        public GameRecord(string gameString)
        {
            string error;

            if (!GameStringParser.Parse(gameString, out error, this))
            {
                throw new ApplicationException("Cannot create GameRecord: " + error);
            }
        }