Table of Contents

Interface IGenerator<T>

Namespace
Veritas
Assembly
Veritas.dll

Generates identifiers for testing or reserved ranges.

public interface IGenerator<T>

Type Parameters

T

Strong type the generator emits.

Methods

TryGenerate(in GenerationOptions, Span<char>, out int)

Attempts to generate an identifier using the supplied options.

bool TryGenerate(in GenerationOptions options, Span<char> destination, out int written)

Parameters

options GenerationOptions

Options controlling identifier generation.

destination Span<char>

Buffer to receive the generated value.

written int

When the method returns, contains the number of characters produced.

Returns

bool

true if generation succeeded; otherwise, false.