Error!
Success!

Introducing Darth Enumerator, PowerShell TIE Fighter |e| Operator

0
kicks

Introducing Darth Enumerator, PowerShell TIE Fighter |e| Operator  (Unpublished)

Starting this project, I assumed that the distinction between an array and a Hashtable in PowerShell is the implementation of the IEnumerable interface. Now I know that there are two kinds of IEnumerables: There is one kind that PowerShell converts into Arrays before processing it in a pipeline for example an ArrayList. And another kind like a SortedList or a HashTable that get passed to the pipeline as scalar objects. My assumption was wrong and now there is some room for speculations. I wonder whether adding an extension method like ToArray() to the .NET Hashtable class, would let me pipe a Hashtable in PowerShell as Array of Dictionary Objects.


Kicked By:
Drop Kicked By: