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

# Sequence

In-memory `int` sequence generator; not thread-safe, so concurrent callers can observe or produce duplicate values.*

## Purpose
- In-memory `int` sequence generator; not thread-safe, so concurrent callers can observe or produce duplicate values.*

## Context
- Namespace: `SAIF.Common`
- Assembly/package: `SAIF.Framework.Common`

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| NextValue | `public override int NextValue { get; }` | Pre-increments and returns `CurrentValue` as an `int`. ([BR-066](../../business-rules.md#br-066-nextvalue-is-pre-increment)) |
| Reset() | `public override void Reset()` | Resets `CurrentValue` to 0. |
| Sequence(int startValue = 0) | `public Sequence(int startValue = 0)` | Constructs the sequence, defaulting the starting value to 0. |


> **Note:** Statements marked with * were inferred from code structure, naming conventions, or
> contextual evidence where direct confirmation was not available in source artifacts. Statements
> marked with ** could not be confirmed; treat as unknown until verified.

## Sources
- `Common/SAIF.Common/Classes/Sequence.cs`
