diff --git a/reference/3.0/Microsoft.PowerShell.Core/About/about_Arrays.md b/reference/3.0/Microsoft.PowerShell.Core/About/about_Arrays.md index 97ff0333d2fb..6dd0f516abdd 100644 --- a/reference/3.0/Microsoft.PowerShell.Core/About/about_Arrays.md +++ b/reference/3.0/Microsoft.PowerShell.Core/About/about_Arrays.md @@ -8,7 +8,6 @@ title: about_Arrays # About Arrays ## Short Description - Describes arrays, which are data structures designed to store collections of items. @@ -43,7 +42,7 @@ $B = 5..8 As a result, $B contains four values: 5, 6, 7, and 8. -When no data type is specified, Windows PowerShell creates each array as an +When no data type is specified, PowerShell creates each array as an object array (type: System.Object[]). To determine the data type of an array, use the GetType() method. For example, to determine the data type of the $a array, type: @@ -421,8 +420,8 @@ using `.` notation from any collection. To get the properties and methods of an array, such as the Length property and the SetValue method, use the InputObject parameter of the Get-Member cmdlet. -When you pipe an array to `Get-Member`, Windows PowerShell sends the items one -at a time and Get-Member returns the type of each item in the array (ignoring +When you pipe an array to `Get-Member`, PowerShell sends the items one +at a time and `Get-Member` returns the type of each item in the array (ignoring duplicates). When you use the *-InputObject* parameter, `Get-Member` returns the members of diff --git a/reference/4.0/Microsoft.PowerShell.Core/About/about_Arrays.md b/reference/4.0/Microsoft.PowerShell.Core/About/about_Arrays.md index 3618a0ebe027..989960e4ca2e 100644 --- a/reference/4.0/Microsoft.PowerShell.Core/About/about_Arrays.md +++ b/reference/4.0/Microsoft.PowerShell.Core/About/about_Arrays.md @@ -8,7 +8,6 @@ title: about_Arrays # About Arrays ## Short Description - Describes arrays, which are data structures designed to store collections of items. @@ -43,7 +42,7 @@ $B = 5..8 As a result, $B contains four values: 5, 6, 7, and 8. -When no data type is specified, Windows PowerShell creates each array as an +When no data type is specified, PowerShell creates each array as an object array (type: System.Object[]). To determine the data type of an array, use the GetType() method. For example, to determine the data type of the $a array, type: @@ -432,7 +431,7 @@ ForEach(scriptblock expression, object[] arguments) #### ForEach(scriptblock expression, object[] arguments) > [!NOTE] -> The syntax requires the usage of curly brackets; parenthesis are optional +> The syntax requires the usage of a script block. Parentheses are optional. The following example shows how use the foreach method. In this case the intent is to generate the square value of the elements in the array. @@ -537,12 +536,12 @@ optional argument allows additional selection capabilities, and the are returned from the filter. > [!NOTE] -> The syntax requires the usage of curly brackets; parenthesis are optional +> The syntax requires the usage of a script block. Parentheses are optional. The following example shows how to select all odd numbers from the array. ```powershell -(0..9).Where{ $_ % 2 } +(0..9).Where { $_ % 2 } ``` ```output @@ -689,8 +688,8 @@ Stopped AppIDSvc Application Identity To get the properties and methods of an array, such as the Length property and the SetValue method, use the InputObject parameter of the Get-Member cmdlet. -When you pipe an array to `Get-Member`, Windows PowerShell sends the items one -at a time and Get-Member returns the type of each item in the array (ignoring +When you pipe an array to `Get-Member`, PowerShell sends the items one +at a time and `Get-Member` returns the type of each item in the array (ignoring duplicates). When you use the *-InputObject* parameter, `Get-Member` returns the members of diff --git a/reference/5.0/Microsoft.PowerShell.Core/About/about_Arrays.md b/reference/5.0/Microsoft.PowerShell.Core/About/about_Arrays.md index 3618a0ebe027..989960e4ca2e 100644 --- a/reference/5.0/Microsoft.PowerShell.Core/About/about_Arrays.md +++ b/reference/5.0/Microsoft.PowerShell.Core/About/about_Arrays.md @@ -8,7 +8,6 @@ title: about_Arrays # About Arrays ## Short Description - Describes arrays, which are data structures designed to store collections of items. @@ -43,7 +42,7 @@ $B = 5..8 As a result, $B contains four values: 5, 6, 7, and 8. -When no data type is specified, Windows PowerShell creates each array as an +When no data type is specified, PowerShell creates each array as an object array (type: System.Object[]). To determine the data type of an array, use the GetType() method. For example, to determine the data type of the $a array, type: @@ -432,7 +431,7 @@ ForEach(scriptblock expression, object[] arguments) #### ForEach(scriptblock expression, object[] arguments) > [!NOTE] -> The syntax requires the usage of curly brackets; parenthesis are optional +> The syntax requires the usage of a script block. Parentheses are optional. The following example shows how use the foreach method. In this case the intent is to generate the square value of the elements in the array. @@ -537,12 +536,12 @@ optional argument allows additional selection capabilities, and the are returned from the filter. > [!NOTE] -> The syntax requires the usage of curly brackets; parenthesis are optional +> The syntax requires the usage of a script block. Parentheses are optional. The following example shows how to select all odd numbers from the array. ```powershell -(0..9).Where{ $_ % 2 } +(0..9).Where { $_ % 2 } ``` ```output @@ -689,8 +688,8 @@ Stopped AppIDSvc Application Identity To get the properties and methods of an array, such as the Length property and the SetValue method, use the InputObject parameter of the Get-Member cmdlet. -When you pipe an array to `Get-Member`, Windows PowerShell sends the items one -at a time and Get-Member returns the type of each item in the array (ignoring +When you pipe an array to `Get-Member`, PowerShell sends the items one +at a time and `Get-Member` returns the type of each item in the array (ignoring duplicates). When you use the *-InputObject* parameter, `Get-Member` returns the members of diff --git a/reference/5.1/Microsoft.PowerShell.Core/About/about_Arrays.md b/reference/5.1/Microsoft.PowerShell.Core/About/about_Arrays.md index 3618a0ebe027..989960e4ca2e 100644 --- a/reference/5.1/Microsoft.PowerShell.Core/About/about_Arrays.md +++ b/reference/5.1/Microsoft.PowerShell.Core/About/about_Arrays.md @@ -8,7 +8,6 @@ title: about_Arrays # About Arrays ## Short Description - Describes arrays, which are data structures designed to store collections of items. @@ -43,7 +42,7 @@ $B = 5..8 As a result, $B contains four values: 5, 6, 7, and 8. -When no data type is specified, Windows PowerShell creates each array as an +When no data type is specified, PowerShell creates each array as an object array (type: System.Object[]). To determine the data type of an array, use the GetType() method. For example, to determine the data type of the $a array, type: @@ -432,7 +431,7 @@ ForEach(scriptblock expression, object[] arguments) #### ForEach(scriptblock expression, object[] arguments) > [!NOTE] -> The syntax requires the usage of curly brackets; parenthesis are optional +> The syntax requires the usage of a script block. Parentheses are optional. The following example shows how use the foreach method. In this case the intent is to generate the square value of the elements in the array. @@ -537,12 +536,12 @@ optional argument allows additional selection capabilities, and the are returned from the filter. > [!NOTE] -> The syntax requires the usage of curly brackets; parenthesis are optional +> The syntax requires the usage of a script block. Parentheses are optional. The following example shows how to select all odd numbers from the array. ```powershell -(0..9).Where{ $_ % 2 } +(0..9).Where { $_ % 2 } ``` ```output @@ -689,8 +688,8 @@ Stopped AppIDSvc Application Identity To get the properties and methods of an array, such as the Length property and the SetValue method, use the InputObject parameter of the Get-Member cmdlet. -When you pipe an array to `Get-Member`, Windows PowerShell sends the items one -at a time and Get-Member returns the type of each item in the array (ignoring +When you pipe an array to `Get-Member`, PowerShell sends the items one +at a time and `Get-Member` returns the type of each item in the array (ignoring duplicates). When you use the *-InputObject* parameter, `Get-Member` returns the members of diff --git a/reference/6/Microsoft.PowerShell.Core/About/about_Arrays.md b/reference/6/Microsoft.PowerShell.Core/About/about_Arrays.md index 5251f4636256..989960e4ca2e 100644 --- a/reference/6/Microsoft.PowerShell.Core/About/about_Arrays.md +++ b/reference/6/Microsoft.PowerShell.Core/About/about_Arrays.md @@ -431,7 +431,7 @@ ForEach(scriptblock expression, object[] arguments) #### ForEach(scriptblock expression, object[] arguments) > [!NOTE] -> The syntax requires the usage of curly brackets; parenthesis are optional +> The syntax requires the usage of a script block. Parentheses are optional. The following example shows how use the foreach method. In this case the intent is to generate the square value of the elements in the array. @@ -536,12 +536,12 @@ optional argument allows additional selection capabilities, and the are returned from the filter. > [!NOTE] -> The syntax requires the usage of curly brackets; parenthesis are optional +> The syntax requires the usage of a script block. Parentheses are optional. The following example shows how to select all odd numbers from the array. ```powershell -(0..9).Where{ $_ % 2 } +(0..9).Where { $_ % 2 } ``` ```output @@ -689,7 +689,7 @@ To get the properties and methods of an array, such as the Length property and the SetValue method, use the InputObject parameter of the Get-Member cmdlet. When you pipe an array to `Get-Member`, PowerShell sends the items one -at a time and Get-Member returns the type of each item in the array (ignoring +at a time and `Get-Member` returns the type of each item in the array (ignoring duplicates). When you use the *-InputObject* parameter, `Get-Member` returns the members of