Skip To Content
PowerShell Gallery
Toggle navigation
Packages
Publish
Documentation
Sign in
Search PowerShell packages:
Assert
0.6.0
tst/TestHelpers.psm1
function
New-Dictionary
(
[hashtable]
$Hashtable
)
{
$d
=
new-object
"Collections.Generic.Dictionary[string,object]"
$Hashtable
.
GetEnumerator
(
)
|
foreach
{
$d
.
Add
(
$_
.
Key
,
$_
.
Value
)
}
$d
}