public MsBitsFiles(IEnumBackgroundCopyFiles files) : base(() => files.Reset(), () => { IBackgroundCopyFile file = null; uint fetched = 0; files.Next(1, out file, out fetched); return(fetched == 1 ? file : null); }, () => { uint count; files.GetCount(out count); return((int)count); }) { }
/// <summary>Resets the enumerator index to the beginning of the <see cref="BackgroundCopyFileCollection"/> collection.</summary> public void Reset() { icurrentfile = null; ienum.Reset(); }
internal Enumerator(IEnumBackgroundCopyFiles enumfiles) { ienum = enumfiles; ienum.Reset(); }