Helpwiz.DotNetHelpers 1.0.2

dotnet add package Helpwiz.DotNetHelpers --version 1.0.2
NuGet\Install-Package Helpwiz.DotNetHelpers -Version 1.0.2
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="Helpwiz.DotNetHelpers" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Helpwiz.DotNetHelpers --version 1.0.2
#r "nuget: Helpwiz.DotNetHelpers, 1.0.2"
#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 Helpwiz.DotNetHelpers as a Cake Addin
#addin nuget:?package=Helpwiz.DotNetHelpers&version=1.0.2

// Install Helpwiz.DotNetHelpers as a Cake Tool
#tool nuget:?package=Helpwiz.DotNetHelpers&version=1.0.2

Helpwiz Dot Net Helpers

This package contains a set of miscellaneous helper functions used by Helpwiz. Helpwiz is a marketplace for domestic cleaners - we allow clients who want to find a cleaner for their houses to choose and book a cleaner in a simple, one-pass process. We provide this package to anyone who wants to use it. It has several useful Linq extensions:

Linq extensions for Enumerables

  • ArgMin(t ⇒ t.value), returns the element of the enumeration corresponding to the minimum of the quantity selected.
  • ArgMax(t ⇒ t.value), returns the element of the enumeration corresponding to the maximum of the quantity selected.
  • Distinct(t ⇒ t.property), returns the set of distinct values of a sub-property of the enumerated elements.
  • Except(elem1, elem2, ...), returns an enumeration without the specified single values excluded.
  • Concat(elem1, elem2, ...), returns an enumeration with the specified single values appended.
  • SkipLast(), skips the last element of the enumeration.
  • FirstIndexOf(t ⇒ bool), returns the first index matching the predicate.
  • LastIndexOf(t ⇒ bool), returns the last index matching the predicate.
  • RemoveAt(index), returns an enumeration with the element at the specified index removed.
  • ToReadOnlyListFast(), returns the input cast to a read only list if possible, or as a new IReadOnlyList if not.
  • ToSet(), returns a HashSet<T> of the input.
  • ToSet(IEqualityComparer<T>), returns a HashSet<T> of the input with the specified comparer.
  • ZipExt(...), extends Zip() to allow three, four and five enumerations as input.
  • ForeachExt(Action<T>), applies the given action to all elements of an enumeration.
  • ForeachZip(IEnumerable<T>, IEnumerable<T2>, Action<T, T2>), applies the given action to pairs of elements chosen from the two source enumerations.
  • ToObservableCollection(), returns an ObservableCollection<T> of the input.

Linq extensions for comparables

  • MinOrDefault(), returns the minimum or the default IComparable<T> if not found.
  • MinOrDefault(t ⇒ t.x), returns the minimum or the default IComparable<T> if not found.
  • MaxOrDefault(), returns the maximum or the default IComparable<T> if not found.
  • MaxOrDefault(t ⇒ t.x), returns the maximum or the default IComparable<T> if not found.

Linq extensions for value-typed Enumerables

  • Closest(int / decimal / double), returns the value in the enumeration numerically closest to the value provided.
  • FirstOrNull(t ⇒ bool), returns the first matching value type as a nullable, or null if not found.
  • FirstIndexOfOrNull(t ⇒ bool), returns the first matching index as a nullable integer, or null if not found.
  • LastIndexOfOrNull(t ⇒ bool), returns the last matching index as a nullable integer, or null if not found.
  • MaxOrNull(t ⇒ t.x), returns the maximum t.x as a nullable or null if not found.

Linq extensions for IEnumerable<double>

  • MeanRejectingOutliers(this IEnumerable<double>), returns a nullable double representing the mean, with all items over 1.8 standard deviations from the sample mean rejected. Null if it cannot be calculated.
  • StandardDeviation(this IEnumerable<double>), returns a double representing the standard deviation of the samples, or throws an exception if empty.

String Parsing Extensions

  • ParseDoubleInvariant(this string), attempts to parse the string as an invariant-culture nullable double, returns null if it cannot.
  • ParseDecimal(this string), attempts to parse the string as a nullable decimal, returns null if it cannot.
  • ParseInt(this string), attempts to parse the string as a nullable integer, returns null if it cannot.
  • ParseBool(this string), attempts to parse the string as a nullable bool, returns null if it cannot.
  • ParseGuid(this string), attempts to parse the string as a nullable Guid, returns null if it cannot.

WPF Helpers

  • Delegate Command - an implementation of ICommand that can be created by casting directly from a method group.
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 (1)

Showing the top 1 NuGet packages that depend on Helpwiz.DotNetHelpers:

Package Downloads
Helpwiz.CosmosDbFramework

A basic framework for reading, writing and querying cosmosdb behind a repository & unit-of-work pattern, using expression-style queries.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.2 416 8/27/2020
1.0.1 1,716 7/6/2020
1.0.0 406 7/6/2020

1.0.1 Added Async GetOrAdd dictionary methods.
1.0.2 Improvements to DelegateCommand to allow casting from an action or method group.