NSoft.NFramework.Nini.Ini.IniWriter.WriteKey C# (CSharp) Method

WriteKey() public method

public WriteKey ( string key, string value ) : void
key string
value string
return void
        public void WriteKey(string key, string value) {
            ValidateStateKey();
            WriteLine(key + " " + assignDelimiter + " " + GetKeyValue(value));
        }

Same methods

IniWriter::WriteKey ( string key, string value, string comment ) : void

Usage Example

Ejemplo n.º 1
0
        public void ReplaceEndOfLine()
        {
            StringWriter writer    = new StringWriter();
            IniWriter    iniWriter = new IniWriter(writer);

            iniWriter.WriteSection("Required");
            iniWriter.WriteKey("thanksgiving", "November\n 25th");

            Assert.AreEqual("thanksgiving = November 25th", ReadLine(writer, 2));
        }
All Usage Examples Of NSoft.NFramework.Nini.Ini.IniWriter::WriteKey