Class EnvParser
Defines the methods that control the parser behavior.
Implements
Inherited Members
Namespace: DotEnv.Core
Assembly: DotEnv.Core.dll
Syntax
public class EnvParser : IEnvParser
Methods
Name | Description |
---|---|
Allow |
Allows concatenating the values of the duplicate keys. |
Allow |
Allows overwriting the existing variables of a specific provider (e.g., current process or a Dictionary<TKey,TValue>). |
Avoid |
Avoids modifying the environment of the current process. When this method is used, the environment variables are obtained from a Dictionary<TKey,TValue> and not from the current process. |
Disable |
Disables the trim at the end of the keys. This method will tell the parser not to remove trailing white spaces from the keys. |
Disable |
Disables the trim at the end of the values. This method will tell the parser not to remove trailing white spaces from the values. |
Disable |
Disables the trim at the start and end of the keys. |
Disable |
Disables the trim at the start of the comments. This method will tell the parser not to remove leading white spaces from the comments. |
Disable |
Disables the trim at the start of the keys. This method will tell the parser not to remove leading white spaces from the keys. |
Disable |
Disables the trim at the start of the values. This method will tell the parser not to remove leading white spaces from the values. |
Disable |
Disables the trim at the start and end of the values. |
Ignore |
Disables/ignores Parser |
Parse(String) | Start the parsing to extract the key-value pair from a data source. |
Parse(String, out Env |
Start the parsing to extract the key-value pair from a data source. |
Set |
Sets the character that will define the beginning of a comment. |
Set |
Sets the delimiter that separates an assignment of a value to a key. |
Set |
Sets the environment variables provider. When this method is used, the environment variables are obtained from the custom provider. |