public MsBitsJobs(IEnumBackgroundCopyJobs jobs) : base(() => jobs.Reset(), () => { IBackgroundCopyJob job = null; uint fetched = 0; jobs.Next(1, out job, out fetched); return(fetched == 1 ? job : null); }, () => { uint count; jobs.GetCount(out count); return((int)count); }) { }
/// <summary>Resets the enumerator index to the beginning of the <see cref="BackgroundCopyJobCollection"/> collection.</summary> public void Reset() { icurrentjob = null; ienum.Reset(); }
internal Enumerator(IEnumBackgroundCopyJobs enumjobs) { ienum = enumjobs; ienum.Reset(); }