public bool MoveNext()
            {
                while (_src.MoveNext())
                {
                    if (_parent._second.ContainsKey(_src.Current) &&
                        !_alreadyDoneItems.ContainsKey(_src.Current))
                    {
                        _alreadyDoneItems[_src.Current] = 1;
                        return(true);
                    }
                }

                return(false);
            }
Esempio n. 2
0
            public bool MoveNext()
            {
                while (_src.MoveNext())
                {
                    var key = _selector(_src.Current);
                    if (_hashset.ContainsKey(key))
                    {
                        continue;
                    }

                    _hashset[key] = 1;
                    return(true);
                }

                return(false);
            }