Skip to content

Commit

Permalink
Merge pull request #11254 from MicrosoftDocs/main
Browse files Browse the repository at this point in the history
7/11/2024 PM Publish
  • Loading branch information
Taojunshen committed Jul 11, 2024
2 parents 933d68c + 47e199b commit becb07f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions reference/7.4/Microsoft.PowerShell.Core/About/about_Arrays.md
Original file line number Diff line number Diff line change
Expand Up @@ -643,10 +643,10 @@ The following example shows how to select all odd numbers from the array.
9
```

This example show how to select the strings that aren't empty.
The next example shows how to select all non-empty strings.

```powershell
('hi', '', 'there').Where({$_.Length})
('hi', '', 'there').Where{ $_ }
```

```Output
Expand Down Expand Up @@ -1055,11 +1055,10 @@ Thursday, June 24, 2021 1:23:30 PM
```

The `set_LastWriteTime()` method is a _hidden_ member of the **FileInfo**
object. The following example shows how to find members that have a _hidden_
`set` method.
object. The following example shows how to find _hidden_ `set` methods.

```powershell
$files | Get-Member | Where-Object Definition -like '*set;*'
$files | Get-Member -Force -Name set_*
```

```Output
Expand Down

0 comments on commit becb07f

Please sign in to comment.