Esempio n. 1
0
        /// <summary>
        /// オブジェクトの内容をXMLに書き込む
        /// </summary>
        public void WriteJson()
        {
            var rootPath = Path.GetDirectoryName(this.FilePath) + "\\";

            foreach (var b in this.Books)
            {
                b.FilePath = b.FilePath.Replace(rootPath, string.Empty);
            }

            SerializationExtensions.WriteJson(this, this.FilePath);

            foreach (var b in this.Books)
            {
                b.FilePath = rootPath + b.FilePath;
            }
        }