Jeff.Jones.JHelpers 1.0.3

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

// Install Jeff.Jones.JHelpers as a Cake Tool
#tool nuget:?package=Jeff.Jones.JHelpers&version=1.0.3                

JHelpers version 1.0.3

JHelpers is a .NET Standard 2.0 library component that can be used with any .NET project, whether Core or Standard, on any OS that works with .NET Standard or .NET Core. It is a library of generally useful methods and functionality that can save a developer from writing code to accomplish these mundane tasks – or worse, have several versions of a method that does the same thing written in multiple places. JHelpers is used in my JDAC and JLogger NuGet packages for that very reason. JHelpers is a signed assembly.

Code examples are available in the sample application found at: https://github.com/MSBassSinger/JHelpers_Demo/

ContextMgr

ContextMgr is a thread-safe singleton that can be used to store data in a single place accessible from anywhere, and any thread, in the application. One typical use is to store settings and other runtime values so their sources (file, database, etc.) only have to be read once. Anything that can be defined as a unique String name and a value or reference type of any kind can be kept there. Values are added as a String key name (which must be unique) and any value or reference type, boxed as a dynamic type.

ContextMgr has no initialization, and as a singleton, does not use “new” to be created. The actual instance is dynamically created on the first reference in the code.

In your application’s shutdown code, I recommend adding this line so the ContextMgr disposes of its resources without waiting on the .NET garbage collector.

ContextMgr.Instance.Dispose();

CommonHelpers

This is a static class with a number of useful static methods and extension methods.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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 Jeff.Jones.JHelpers:

Package Downloads
Jeff.Jones.JLogger

A singleton logging component. Simple to use, lots of flexibility. Writes to a user-specified log and path, and optionally sends email. Can also write logs to a SQL Server database, with optional audit log. T-SQL files included. For .NET Core 2.0+, .NET Standard 2.0+, .NET Framework 4.6.1+

Jeff.Jones.JDAC

A simple, versatile library to simplify SQL Server database access

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.4 608 11/21/2020
1.0.3 738 5/3/2020
1.0.1 1,665 7/23/2019

All requests for support must be sent by email to:
 MSBassSinger@comcast.net
The email MUST havd "JHelper" in the Subject line You MUST provide details that include code snippets of where the failure occured, and exact failure or exception messages.