I wanted to do [string]::Join(", ", $HashTable.Keys);
but that returns System.Collections.Hashtable+KeyCollection...
instead of the enumerated values.
Do I need to make a foreach loop for this?
You can simply do:
$HashTable.Keys -join ','
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With