Esempio n. 1
0
        private static void ReadVals()
        {
            string[] Lines = File.ReadAllLines(_CurrentConfig, _Encoding);
            for (int i = 0; i < Lines.Length; i++)
            {
                string    Line       = Lines[i];
                ConfigVar oConfigVar = null;
                try
                {
                    oConfigVar = new ConfigVar(Line);

                    _ConfigDict[oConfigVar.VarName] = oConfigVar;
                }
                catch (InvalidOperationException ex)
                {
                    throw new InvalidOperationException(string.Format("Fehler in Konfiguration '{0}', Zeile {1};\n{2}", _CurrentConfig, i + 1, ex.Message));
                }
            }
        }