예제 #1
0
 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);
 })
 {
 }
예제 #2
0
 /// <summary>Resets the enumerator index to the beginning of the <see cref="BackgroundCopyFileCollection"/> collection.</summary>
 public void Reset()
 {
     icurrentfile = null;
     ienum.Reset();
 }
예제 #3
0
 internal Enumerator(IEnumBackgroundCopyFiles enumfiles)
 {
     ienum = enumfiles;
     ienum.Reset();
 }