Add functions for configuration data handling and extend template merging capabilities
This commit is contained in:
18
Private/Test-ConfigurationDataDictionaryKey.ps1
Normal file
18
Private/Test-ConfigurationDataDictionaryKey.ps1
Normal file
@@ -0,0 +1,18 @@
|
||||
function Test-ConfigurationDataDictionaryKey {
|
||||
[CmdletBinding()]
|
||||
Param(
|
||||
[Parameter(Mandatory=$true)]
|
||||
[System.Collections.IDictionary]
|
||||
$Dictionary,
|
||||
|
||||
[Parameter(Mandatory=$true)]
|
||||
[string]
|
||||
$Key
|
||||
)
|
||||
|
||||
if($Dictionary -is [System.Collections.Specialized.OrderedDictionary]){
|
||||
return $Dictionary.Contains($Key)
|
||||
}
|
||||
|
||||
return $Dictionary.ContainsKey($Key)
|
||||
}
|
||||
Reference in New Issue
Block a user