예제 #1
0
        public void Dispose()
        {
            if (_inner != null)
            {
                _inner.Dispose();
                _inner = null;
            }

            _converter = null;
            _current   = default(TTarget);
        }
예제 #2
0
 public TryConvertEnumerator(IEnumerator <TSource> inner, TryConvertCallback <TSource, TTarget> converter)
 {
     _inner     = inner;
     _converter = converter;
     _current   = default(TTarget);
 }