protected override void SetData(StoreData data, string identifier) { XElement itemElement = GetItem(identifier); if (itemElement == null) { itemElement = new XElement(ITEM_TAG, new XAttribute(ID_ATTRIBUTE, identifier)); Document.Root.Add(itemElement); } itemElement.Value = data.Serialized; itemElement.SetAttributeValue(TYPE_ATTRIBUTE, data.OriginalType.AssemblyQualifiedName); SaveXML(Document.ToString()); }
protected abstract void SetData(StoreData data, string identifier);