LightTraveller.Helpers 1.0.0

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package LightTraveller.Helpers --version 1.0.0
NuGet\Install-Package LightTraveller.Helpers -Version 1.0.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="LightTraveller.Helpers" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LightTraveller.Helpers --version 1.0.0
#r "nuget: LightTraveller.Helpers, 1.0.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 LightTraveller.Helpers as a Cake Addin
#addin nuget:?package=LightTraveller.Helpers&version=1.0.0

// Install LightTraveller.Helpers as a Cake Tool
#tool nuget:?package=LightTraveller.Helpers&version=1.0.0

LightTraveller.Helpers

This library is a collection of methods frequently used in everyday work of a .NET programmer. These methods are implemented as extension methods for ease of use.

However, some of the provided methods may not be common ones and have limited use cases, e.g., ToBase32String and FromBase32String. I am keeping them in this library for my own reference and also because they are rarely implemented.

More complete test coverage as well as XML documentation for IntelliSense assistance will be added later.

Some Examples

Checking for Null-or-Empty strings

if (string.IsNullOrWhiteSpace(str))
    DoSomething();

// can be changed to

if (str.Empty())
    DoSomething();

Case-insensitive String Comparison

firstString.Equals(second, StringComparison.OrdinalIgnoreCase)

// can be changed to

firstString.EasyEquals(second)

Cancellation of a Task

if (cancellationToken.IsCancellationRequested)
    cancellationToken.ThrowIfCancellationRequested();

// can be changed to

cancellationToken.CheckThrow();

Installation

You can add the Nuget package of LightTraveller.Helpers by running the following command in the .NET CLI

dotnet add package LightTraveller.Helpers --version <VERSION NUMBER>

For more information please go to the nuget.org page of this library.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
3.3.0 327 3/17/2023
3.2.0 202 3/9/2023
3.1.0 234 2/28/2023
3.0.1 248 2/3/2023
3.0.0 250 2/1/2023
2.1.0 261 2/1/2023
2.0.0 248 2/1/2023
1.0.2 249 2/1/2023
1.0.1 256 2/1/2023
1.0.0 264 2/1/2023