ISequenceGenerator¶
Contract for a monotonic value generator, implemented by SequenceGenerator<T> and its subclasses Sequence/LongSequence.
Purpose¶
- Contract for a monotonic value generator, implemented by
SequenceGenerator<T>and its subclassesSequence/LongSequence.
Context¶
- Namespace:
SAIF.Common - Assembly/package:
SAIF.Framework.Common
Public members¶
| Member | Signature | Purpose |
|---|---|---|
| CurrentValue | T CurrentValue { get; } |
The most recently produced value. |
| NextValue | T NextValue { get; } |
Advances the sequence and returns the new value. (BR-066) |
| SetValue(T value) | void SetValue(T value) |
Overwrites the current value directly. |
| Reset() | void Reset() |
Resets the sequence to its starting value. |
Sources¶
Common/SAIF.Common/Interfaces/ISequenceGenerator.cs