public override void Save() { if ((DatabaseUrl.IsFileBasedDatabaseType(this._database.GetDatabaseType()) && !this._database.IsFilesReadOnly()) && !this._database.IsFilesInAssembly()) { try { LibCoreProperties properties1 = new LibCoreProperties(this._database.GetPath(), this._database.logger.GetFileAccess()); properties1.SetProperty("version", ThisVersion); properties1.SetProperty("modified", this.GetProperty("modified")); properties1.Save(base.FileName + ".properties.new"); base.Fa.RenameElement(base.FileName + ".properties.new", base.FileName + ".properties"); } catch (Exception exception) { this._database.logger.LogSevereEvent(FwNs.Core.LC.cResources.SR.LibCoreDatabaseProperties_Save_save_failed, exception); object[] add = new object[] { exception.Message, base.FileName }; throw Error.GetError(exception, 0x1c4, 0x1b, add); } } }