DotEnvTokenType Enum
Definition
Enumerates the token kinds a Utf8DotEnvReader reports as it advances through a DotEnv document.
public enum DotEnvTokenType
- Extension Methods
Fields
None = 0No token has been read, or the reader has reached the end of the document.
StartObject = 1The start of the synthetic document object, emitted before the first key.
EndObject = 2The end of the synthetic document object, emitted after the last key.
PropertyName = 3A key name, emitted before its value.
String = 4A string value.
Comment = 5A 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
| Product | Versions |
|---|---|
| .NET | 8, 10 |