J4JSoftware.MiscellaneousUtilities 2.2.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package J4JSoftware.MiscellaneousUtilities --version 2.2.0                
NuGet\Install-Package J4JSoftware.MiscellaneousUtilities -Version 2.2.0                
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="J4JSoftware.MiscellaneousUtilities" Version="2.2.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add J4JSoftware.MiscellaneousUtilities --version 2.2.0                
#r "nuget: J4JSoftware.MiscellaneousUtilities, 2.2.0"                
#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 J4JSoftware.MiscellaneousUtilities as a Cake Addin
#addin nuget:?package=J4JSoftware.MiscellaneousUtilities&version=2.2.0

// Install J4JSoftware.MiscellaneousUtilities as a Cake Tool
#tool nuget:?package=J4JSoftware.MiscellaneousUtilities&version=2.2.0                

J4JSoftware.MiscellaneousUtilities

The library repository is available on github.

The change log is available here.

This assembly contains a few miscellaneous utility methods I've found useful:

  • Extension method for extracting PropertyInfo from an Expression GetPropertyInfo<TContainer, TProp>()
  • Static method for validating configuration and output files FileExtensions.ValidateFilePath()
  • Static hashing methods for strings, e.g., CalculateHash()

Experimental APIs

This assembly also provides two APIs which I've found helpful in building WPF apps, particularly ones that utilize SyncFusion's WPF controls:

API Description
SelectableNode provides a wrapper for selecting nodes that are used in a tree control
RangeCalculator provides a means for selecting a reasonable pair of major/minor tick intervals for a range control

This assembly targets Net 7 and has nullability enabled.

Both of these APIs are experimental and subject to change/removal.

Examples of using both APIs are forthcoming.

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on J4JSoftware.MiscellaneousUtilities:

Package Downloads
J4JSoftware.DependencyInjection

provides customized IHostBuilder and IHost classes for simplified configuration

J4JSoftware.EFCore.Utilities

a utility framework to simplify working with EF Core databases

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.4.1 297 4/11/2023
2.4.0 208 4/4/2023
2.3.0 337 1/8/2023
2.2.0 302 1/8/2023
2.1.1 300 12/29/2022
2.1.0 331 12/27/2022
2.0.0 338 11/12/2021
1.0.1 348 9/29/2021
1.0.0 361 9/28/2021

fixed problems with file validation method