public void Flush() { if (FileOpenAccess == FileAccess.Read || flushing) { return; } flushing = true; // Ensure we've loaded the relationships, parts and properties int count = Relationships.Count; if (packageProperties != null) { packageProperties.Flush(); } FlushCore(); flushing = false; }