Beispiel #1
0
            private void NewValue()
            {
                token.Append(valueToken.ToString().Trim());
                valueToken.Clear();

                string value = token.ToString();

                if (_key.IsNullOrEmpty())
                {
                    throw new Exception(
                              string.Format("Value {0} for empty key in configfile {1}.", value, FileName));
                }

                _section.AddValue(_key, value);

                _key = null;
            }