QSoft.Registry 1.0.0.7

dotnet add package QSoft.Registry --version 1.0.0.7                
NuGet\Install-Package QSoft.Registry -Version 1.0.0.7                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="QSoft.Registry" Version="1.0.0.7" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add QSoft.Registry --version 1.0.0.7                
#r "nuget: QSoft.Registry, 1.0.0.7"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install QSoft.Registry as a Cake Addin
#addin nuget:?package=QSoft.Registry&version=1.0.0.7

// Install QSoft.Registry as a Cake Tool
#tool nuget:?package=QSoft.Registry&version=1.0.0.7                

Introduction

  • Support Queryable function
  • Auto control Registry resource no control resource create and dispose
  • Support Update and Remove RegistryKey
  • Support convert value
  • Support subkey query

Quick Start

//define want to get data
public class InstalledApp
{
    public string DisplayName { set; get; }
    [RegPropertyName(Name = "DisplayVersion")]
    public Version Version { set; get; }
    public int? EstimatedSize { set; get; }
}

//create convert
public class Version2String : RegQueryConvert<Version>
{
    public override string ConvertTo(Version src)
    {
        return src.ToString();
    }

    public override Version ConvertBack(string dst)
    {
        Version version;
        Version.TryParse(dst, out version);
        return version;
    }
}

//create registrykey query
var regt1 = new RegQuery<InstalledApp>()
      .useSetting(x =>
      {
          x.Hive = RegistryHive.LocalMachine;
          x.SubKey = @"SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall";
          x.View = RegistryView.Registry64;
      })
      .useConverts(x=>
      {
            x.Add(new Version2String());
      });

//get dispalyname contains Windows
var where = regt.Where(x => x.DisplayName.Contains("Windows"));

//filter version
var where_version = regt.Where(x => x.Version > new Version(1, 1, 1, 1));

More

Product Compatible and additional computed target framework versions.
.NET Framework net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 is compatible.  net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.0

    • No dependencies.
  • .NETFramework 4.7.2

    • No dependencies.
  • .NETFramework 4.8

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0.7 439 9/30/2022
1.0.0.6 464 2/21/2022
1.0.0.5 286 12/20/2021
1.0.0.4 299 12/9/2021
1.0.0.3 858 12/3/2021
1.0.0.2 336 10/25/2021
1.0.0.1 353 2/18/2021
1.0.0 364 1/14/2021

1. Support subkey query
2. Support convert
3. Fix parse Expression issue