public Create ( object parent, object configContext, |
||
parent | object | Parent object |
configContext | object | Configuration context object |
section | EmailSettings XML node from the configuration file | |
return | 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;
}
}