Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
oven425 committed Dec 3, 2021
1 parent 1bc11df commit f086e12
Show file tree
Hide file tree
Showing 8 changed files with 262 additions and 146 deletions.
20 changes: 14 additions & 6 deletions ConsoleApp1/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,23 @@ static void Main(string[] args)
x.SubKey = @"SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\1A";
x.View = RegistryView.Registry64;
});

var group2 = regt.GroupBy(x => x.DisplayName, (key, app) => new { key, app });
var takewhile1 = regt.Where(x => x.DisplayName != "" && x.DisplayVersion > new Version(3,3,3,3));
var where1 = regt.Where(x => x.DisplayName != "").OrderByDescending(x=>x.DisplayVersion);
var aa = regt.GroupBy(x => x.DisplayVersion, (ver, app)=>new { ver, app});
regt.GroupBy(x=>x, (x,y)=>x).Update(x => new InstalledApp() { EstimatedSize = x.EstimatedSize - 100 });
//regt.Where(x => x.EstimatedSize > 130).Update(x => new InstalledApp() { EstimatedSize = x.EstimatedSize - 100 });
//var where_select = regt.Where(x => x.EstimatedSize > 130).Select((x, index) => x);
//var group1 = regt.GroupBy(x => x.DisplayName);
//var group2 = regt.GroupBy(x => x.DisplayName, x => x.EstimatedSize);
var group3 = regt.GroupBy(x => x, (x,y)=>y);
foreach(var oo in group3)
{
//var group3 = regt.GroupBy(x => x.DisplayName, (y, z) => z);
//foreach (var oo in group3)
//{

}
var select = regt.Select((x, index) => new { x, index });
//}
//var where = regt.Where(x => x.DisplayName != ""&& x.EstimatedSize>0);
var zip = regt.Zip(installs, (reg, app) => reg);
var select = regt.Select((x, index) => index+1);
var any = regt.Any(x => x.EstimatedSize > 0);
var first1 = regt.First();
var first2 = regt.First(x => x.DisplayName != "");
Expand Down
4 changes: 4 additions & 0 deletions QSoft.Reg/DictionaryList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ public TValue this[TKey key]
get
{
int index = this.FindLastIndex(x => x.Key.Equals(key));
if(index < 0)
{
return default(TValue);
}
return this.ElementAt(index).Value;
}
set
Expand Down
2 changes: 1 addition & 1 deletion QSoft.Reg/QSoft.Registry.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>QSoft.Registry</RootNamespace>
<AssemblyName>QSoft.Registry</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
<TargetFrameworkProfile />
Expand Down
Loading

0 comments on commit f086e12

Please sign in to comment.