LightTraveller.Helpers
1.0.2
Prefix Reserved
See the version list below for details.
dotnet add package LightTraveller.Helpers --version 1.0.2
NuGet\Install-Package LightTraveller.Helpers -Version 1.0.2
<PackageReference Include="LightTraveller.Helpers" Version="1.0.2" />
paket add LightTraveller.Helpers --version 1.0.2
#r "nuget: LightTraveller.Helpers, 1.0.2"
// Install LightTraveller.Helpers as a Cake Addin #addin nuget:?package=LightTraveller.Helpers&version=1.0.2 // Install LightTraveller.Helpers as a Cake Tool #tool nuget:?package=LightTraveller.Helpers&version=1.0.2
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 | Versions 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. |
-
net6.0
- LightTraveller.Guards (>= 1.1.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.