Skip to content

Commit

Permalink
Update Linq syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredrik Orderud committed Aug 16, 2023
1 parent 8048bc4 commit c5788fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MsixQuery/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ void GetManagementPackages()
//var pkgs = mgr.FindPackages(); // require admin privileges

// filter out system packages (not shown in "Apps & features")
pkgs = pkgs.Where(elm => elm.SignatureKind != PackageSignatureKind.System).ToList();
pkgs = pkgs.Where(_ => _.SignatureKind != PackageSignatureKind.System).ToList();
// filter out frameworks (not shown in "Apps & features")
pkgs = pkgs.Where(elm => elm.IsFramework == false).ToList();
pkgs = pkgs.Where(_ => _.IsFramework == false).ToList();

Console.WriteLine($"Found {pkgs.Count()} packages.");

Expand Down

0 comments on commit c5788fe

Please sign in to comment.