Skip to content

Commit

Permalink
Update 2024-11-18-get-the-members-of-an-array.ps1
Browse files Browse the repository at this point in the history
Changed the case on $myarray on line 10
  • Loading branch information
adrimus authored Nov 18, 2024
1 parent 43a9796 commit cc6b12f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ PowerShell sends the items in an array one at a time when you pipe an array to G
$tip.Example = @'
# When you pipe to Get-Member PowerShell enumerates the array and you get the properties of the items inside the array, in this case a string
PS C:\> [array]$myArray = @('one','two','three')
PS C:\> $myarray | Get-Member
PS C:\> $myArray | Get-Member
TypeName: System.String
Expand Down

0 comments on commit cc6b12f

Please sign in to comment.