I still cannot understand fully, the fundamental idea within Powershell that says the object TYPE changes as one goes from Command A to Command B in a pipeline, and so on. Best to state my dilemma by way of example, because this has bugged me for days/weeks now:
(1) I have a simple CSV file, 4 properties, nothing out-of-the-ordinary or fancy:
Using the InputObject parameter is not the same as piping an object to Get-Member. The differences are as follows:
When you pipe a collection of objects to Get-Member, Get-Member gets the members of the individual objects in the collection, such as the properties of each string in an array of strings.
When you use InputObject to submit a collection of objects, Get-Member gets the members of the collection, such as the properties of the array in an array of strings.
The topic ‘Collections/arrays versus Items/rows -- please help!’ is closed to new replies.