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

# LongSequence

In-memory `long` sequence generator for value ranges that exceed `int` capacity; not thread-safe.*

## Purpose
- In-memory `long` sequence generator for value ranges that exceed `int` capacity; not thread-safe.*

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

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| NextValue | `public override long NextValue { get; }` | Pre-increments and returns `CurrentValue` as a `long`. ([BR-066](../../business-rules.md#br-066-nextvalue-is-pre-increment)) |
| Reset() | `public override void Reset()` | Resets `CurrentValue` to 0. |
| LongSequence(long startValue = 0) | `public LongSequence(long 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/LongSequence.cs`
