예제 #1
0
        private void ReadPair()
        {
            if (!ReadKey())
            {
                return;
            }

            Boolean escape = false;

            while (++_index < _line.Length)
            {
                Char ch = _line[_index];
                if (escape)
                {
                    if (ch != ';')
                    {
                        break;
                    }

                    _sb.Append(';');
                    escape = false;
                }

                if (ch == ';')
                {
                    escape = true;
                }
                else
                {
                    _sb.Append(ch);
                }
            }

            _currnetValue.ParseValue(_sb.ToString().Trim());
        }
예제 #2
0
        private void ReadPair()
        {
            if (!ReadKey())
            {
                return;
            }

            Boolean escape = false;

            while (++_index < _line.Length)
            {
                Char ch = _line[_index];
                if (escape)
                {
                    if (ch != ';')
                    {
                        break;
                    }

                    _sb.Append(';');
                    escape = false;
                }

                if (ch == ';')
                {
                    escape = true;
                }
                else
                {
                    _sb.Append(ch);
                }
            }

            _currnetValue.ParseValue(_sb.ToString().Trim());

            if (_enabledValue == null && _currnetValue.Name == nameof(IniSection.Enabled))
            {
                _enabledValue = (IniValue <Boolean>)_currnetValue;
            }
        }