コード例 #1
0
        public void Save()
        {
            GameXmlDataServices gameXmlDataService = new GameXmlDataServices();

            using (gameXmlDataService)
            {
                gameXmlDataService.Write(_games);
            }
        }
コード例 #2
0
        public GameRepository()
        {
            GameXmlDataServices gameXmlDataService = new GameXmlDataServices();

            using (gameXmlDataService)
            {
                _games = gameXmlDataService.Read() as List <Game>;
            }
        }