Hashtableをforeachしても・・・ - PowerShell Scripting Weblog

PS C:\script> $hash = @{a=1;b=2} PS C:\script> foreach ($entry in $hash){$entry.Key + ":" + $entry.Value } : このようにPowerShellだと$entryにはDictionaryEntryは格納されないんです。何が格納されているかというと、要素数1のHashtableなんですã…