Files
Umbraco-CMS/src/Umbraco.Core/Configuration/RawXmlConfigurationElement.cs

31 lines
835 B
C#
Raw Normal View History

2017-07-20 11:21:28 +02:00
using System.Configuration;
2013-11-07 17:16:22 +01:00
using System.Xml;
using System.Xml.Linq;
namespace Umbraco.Core.Configuration
{
/// <summary>
/// A configuration section that simply exposes the entire raw xml of the section itself which inheritors can use
/// to do with as they please.
/// </summary>
internal abstract class RawXmlConfigurationElement : ConfigurationElement
{
protected RawXmlConfigurationElement()
{
2017-07-20 11:21:28 +02:00
2013-11-07 17:16:22 +01:00
}
protected RawXmlConfigurationElement(XElement rawXml)
{
RawXml = rawXml;
}
protected override void DeserializeElement(XmlReader reader, bool serializeCollectionKey)
{
RawXml = (XElement)XNode.ReadFrom(reader);
}
protected XElement RawXml { get; private set; }
}
2017-07-20 11:21:28 +02:00
}