Aspects.Logging.Configuration.Infrastructure.LogAspectConfig.Copy C# (CSharp) Method

Copy() public method

The copy.
public Copy ( ) : LogAspectConfig
return LogAspectConfig
        public LogAspectConfig Copy()
        {
            LogAspectConfig copy = new LogAspectConfig();
            string xml = SerializeSection(this, LogAspectSectionName, ConfigurationSaveMode.Full);
            using (StringReader stringReader = new StringReader(xml))
            {
                XmlReader reader = new XmlTextReader(stringReader);
                copy.DeserializeSection(reader);
                return copy;
            }
        }