예제 #1
0
        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());
        }
예제 #2
0
 protected abstract void SetData(StoreData data, string identifier);