From cc6b12ffb565dbc903f9a5dfddbe8f644ffd08af Mon Sep 17 00:00:00 2001 From: adrimus <37830358+adrimus@users.noreply.github.com> Date: Mon, 18 Nov 2024 17:15:38 +0100 Subject: [PATCH] Update 2024-11-18-get-the-members-of-an-array.ps1 Changed the case on $myarray on line 10 --- src/PowerShellTips/2024-11-18-get-the-members-of-an-array.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PowerShellTips/2024-11-18-get-the-members-of-an-array.ps1 b/src/PowerShellTips/2024-11-18-get-the-members-of-an-array.ps1 index 4143ccd..e5be7f5 100644 --- a/src/PowerShellTips/2024-11-18-get-the-members-of-an-array.ps1 +++ b/src/PowerShellTips/2024-11-18-get-the-members-of-an-array.ps1 @@ -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