Public class classconfigurationSettings {public classconfigurationSettings () {}
///
m_strfullpath = asm.location.substring (0, (asm.location.lastindexof ("//") 1)) "Youapplication.exe.config"; xmldoc.Load (m_strfullpath);
XmlNodelist NodeList = XmLDoc.selectsinglenode ("/ configuration / appsettings"). ChildNodes; Foreach (XMLNode Xn In nodelist) // Traverse all child nodes {XMLELEMENT XE = (XMLELEMENT) XN;
if (xe.GetAttribute ( "key") IndexOf (p_strKey) = -1.!) {xe.SetAttribute ( "value", p_strValue);}} xmlDoc.Save (m_strFullPath);} catch (System.NullReferenceException NullEx) { THROW NULLEX;} catch (exception ex) {throw ex;}}
}