using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
namespace Console_Config_User
{
class UserInfo : System.Configuration.IConfigurationSectionHandler
{
public string _NAME;
public string _ADDRESS;
public string _HP;
public UserInfo()
{
_NAME =
_ADDRESS =
_HP = "";
}
#region IConfigurationSectionHandler 멤버
public object Create(object parent, object configContext, System.Xml.XmlNode section)
{
//throw new NotImplementedException();
UserInfo obj = new UserInfo();
///
/// section.SelectSingleNode("config").InnerText;
///
obj._NAME = section.SelectSingleNode("NAME").InnerText; // section 이용하여 config 값 넣는다.
obj._ADDRESS = section.SelectSingleNode("ADDRESS").InnerText; // section 이용하여 config 값 넣는다.
obj._HP = section.SelectSingleNode("HP").InnerText; // section 이용하여 config 값 넣는다.
return obj;
}
#endregion
}
}