singrdk/base/Applications/Network/TcpBlast/AscendingSequence.cs

21 lines
328 B
C#
Raw Permalink Normal View History

2008-11-17 18:29:00 -05:00
public class AscendingSequence : IInt32Sequence
{
public AscendingSequence(int first, int step)
{
this.next = first;
this.step = step;
}
int next;
int step;
public int GetNext()
{
int result = next;
next += step;
return result;
}
}