Ejemplo n.º 1
0
 /// <summary>
 /// writes an information into the ini file
 /// </summary>
 /// <example>
 /// <code>
 /// <![CDATA[
 /// // load "config.ini" from the application directory
 /// IniParser Config = new IniParser("config");
 /// Config.Write("Variable", "Value");
 /// ]]>
 /// </code>
 /// </example>
 /// <param name="Key">name of variable</param>
 /// <param name="Value">value of variable</param>
 public void Write(string Key, string Value)
 {
     NativeMethods.WritePrivateProfileString(System.Reflection.Assembly.GetExecutingAssembly().GetName().Name, Key, Value, this.Path);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// writes an information into the ini file
 /// </summary>
 /// <example>
 /// <code>
 /// <![CDATA[
 /// // load "config.ini" from the application directory
 /// IniParser Config = new IniParser("config");
 /// Config.Write("Section", "Variable", "Value");
 /// ]]>
 /// </code>
 /// </example>
 /// <param name="Section">section in ini file</param>
 /// <param name="Key">name of variable</param>
 /// <param name="Value">value of variable</param>
 public void Write(string Section, string Key, string Value)
 {
     NativeMethods.WritePrivateProfileString(Section, Key, Value, this.Path);
 }