Powershell hash table storing values of "System.Collections.DictionaryEntry"

Viewed 17219

When I execute the command:

$var = @{a=1;b=2}

in Powershell (Version 3), $var ends up with a value of {System.Collections.DictionaryEntry, System.Collections.DictionaryEntry}. Why is this happening? How can I store the values I want to store?

1 Answers
Related