EnvironmentVariablesSpec(StringComparer, Boolean) Constructor

Definition

Assembly CliInvoke.Core.dll

Initialises a new instance of the EnvironmentVariablesSpec class.

public EnvironmentVariablesSpec(StringComparer stringComparer, bool throwExceptionIfDuplicateKeyFound = true)

Parameters

stringComparer
StringComparer

The StringComparer to use for the internal dictionary.

throwExceptionIfDuplicateKeyFound
Boolean

Whether to throw an exception if a duplicate key is found or suppress the exception and override the previous value.