Table of Contents

DotEnvTokenType Enum

Definition

Namespace
Bodu.Text.DotEnv
Assembly
Bodu.Text.DotEnv.dll
Package
Bodu.Text.DotEnv 1.0.0
Source
DotEnvTokenType.cs

Enumerates the token kinds a Utf8DotEnvReader reports as it advances through a DotEnv document.

public enum DotEnvTokenType
Extension Methods

Fields

None = 0

No token has been read, or the reader has reached the end of the document.

StartObject = 1

The start of the synthetic document object, emitted before the first key.

EndObject = 2

The end of the synthetic document object, emitted after the last key.

PropertyName = 3

A key name, emitted before its value.

String = 4

A string value.

Comment = 5

A comment line, surfaced for tooling and the mutable document object; skipped by the binder.

Remarks

DotEnv has a single flat structure - an ordered object of string-valued keys - so the token vocabulary is deliberately small: a synthetic document object frames the key/value pairs, and every value is a String scalar. There is no array form.

Applies to

ProductVersions
.NET8, 10