---
title: ISequenceGenerator<T>
summary: API reference for ISequenceGenerator<T>.
status: draft
owner: saif-docgen
last_reviewed: 2026-09-15
library: SAIF.Framework.Common
reference_type: package
---

# ISequenceGenerator<T>

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 subclasses `Sequence`/`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](../../business-rules.md#br-066-nextvalue-is-pre-increment)) |
| 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`
