public void Fold(int numFolds)
{
this.numFolds = (int)Math.Min(numFolds, this.underlying
.Count);
this.foldSize = (int)(this.underlying.Count / this.numFolds);
this.lastFoldSize = (int)(this.underlying.Count - (this.foldSize * this.numFolds));
CurrentFold = 0;
}