J4JSoftware.MiscellaneousUtilities 2.1.0

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

// Install J4JSoftware.MiscellaneousUtilities as a Cake Tool
#tool nuget:?package=J4JSoftware.MiscellaneousUtilities&version=2.1.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 296 4/11/2023
2.4.0 207 4/4/2023
2.3.0 336 1/8/2023
2.2.0 299 1/8/2023
2.1.1 299 12/29/2022
2.1.0 330 12/27/2022
2.0.0 337 11/12/2021
1.0.1 345 9/29/2021
1.0.0 360 9/28/2021

updated to net7, added additional methods