5using System.Collections.Generic;
12 internal static class PackageHelper
26 public static WinGetPackage? MatchExact(List<WinGetPackage> matchList,
string matchString)
28 if (matchList ==
null || matchList.Count <= 0 ||
string.IsNullOrWhiteSpace(matchString))
33 for (
int i = 0; i < matchList.Count; i++)
35 if (
string.Equals(matchList[i].Id, matchString) ||
string.Equals(matchList[i].Name, matchString))