Interface IGenerator<T>
- Namespace
- Veritas
- Assembly
- Veritas.dll
Generates identifiers for testing or reserved ranges.
public interface IGenerator<T>
Type Parameters
TStrong 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
optionsGenerationOptionsOptions controlling identifier generation.
destinationSpan<char>Buffer to receive the generated value.
writtenintWhen the method returns, contains the number of characters produced.
Returns
- bool
trueif generation succeeded; otherwise,false.