Example #1
0
        private bool MoveNextOnStringEnumerator()
        {
            var result = _stringValuesEnumerator.MoveNext();

            Current = result ? new KeyValuePair <string, string>(GetCurrentKey(), _stringValuesEnumerator.Current) : default;
            return(result);
        }
    private bool MoveNextOnStringEnumerator(string key)
    {
        var result = _stringValuesEnumerator.MoveNext();

        // Current is null only when result is false.
        Current = result ? new KeyValuePair <string, string>(key, _stringValuesEnumerator.Current !) : default;