BellevueCollege.Config.EmailSettingsConfigHandler.Create C# (CSharp) Метод

Create() публичный Метод

Loads a ConfigurationSection from .config file into a EmailSettings object
This method is invoked from the .NET configuration system when parsing the .config file.
public Create ( object parent, object configContext, XmlNode section ) : object
parent object Parent object
configContext object Configuration context object
section System.Xml.XmlNode EmailSettings XML node from the configuration file
Результат object
        public object Create(object parent, object configContext, XmlNode section)
        {
            EmailSettings result = null;
            if (section == null)
                    return result;
            XmlSerializer ser = new XmlSerializer(typeof(EmailSettings));

            using (XmlNodeReader reader = new XmlNodeReader(section))
            {
                result = (EmailSettings)ser.Deserialize(reader);

                return result;
            }
        }
EmailSettingsConfigHandler