WhatIsHeDoing.Core 8.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package WhatIsHeDoing.Core --version 8.0.0
                    
NuGet\Install-Package WhatIsHeDoing.Core -Version 8.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="WhatIsHeDoing.Core" Version="8.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="WhatIsHeDoing.Core" Version="8.0.0" />
                    
Directory.Packages.props
<PackageReference Include="WhatIsHeDoing.Core" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add WhatIsHeDoing.Core --version 8.0.0
                    
#r "nuget: WhatIsHeDoing.Core, 8.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.
#:package WhatIsHeDoing.Core@8.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=WhatIsHeDoing.Core&version=8.0.0
                    
Install as a Cake Addin
#tool nuget:?package=WhatIsHeDoing.Core&version=8.0.0
                    
Install as a Cake Tool

WhatIsHeDoing.Core

NuGet package NuGet downloads

A library of extensions to core .NET functionality.

👋 Introduction

The core .NET libraries - those that are available on most .NET runtime versions and environments - are very feature-rich. However, there are times when you need a little helper function, and the list of those functions slowly grows. Rather than having disparate collections of them, this project seeks to group them under the WhatIsHeDoing.Core namespace, complete with unit tests in the WhatIsHeDoing.Core.Tests project.

📡 Live Demo

Take a look at the editable code examples at .NET Fiddle.

🦮 Usage

Installing

This package is available via NuGet.

Methods

Extensions
DateTime
  • GetNextWeekday: Gets the date at the next weekday supplied.
  • PeriodsBetween: Generates the periods between two date times.
IEnumerable
  • Aggregate: Aggregate with the index of the current element.
  • IterateJagged: Flattens a collection of collections of unequal lengths after calling ZipJagged.
  • Randomise: Returns a randomised order of the collection.
  • WhereNotNull: Filters all null elements from a collection.
  • ZipJagged: Enables a collection of unequal collection lengths to be iterated together, effectively as columns.
Integer
  • ToNearestCeiling: Rounds to the largest comparison number.
Long
  • Length: Determines the length of a positive number.
  • StripDigits: Strips a specified number of digits from a number.
Object
  • AsFluent: Calls any action fluently, such as void functions, so that calls can be chained to other members of object.
String
  • AsCurrency: Formats a string as a currency from the current globalisation.
  • IsTrue: Determines whether this string can be converted to a boolean and that value is true.
  • Parse: Invoke a Parse method from the TResult type on the value.
  • ToBytes: Converts a string representation of a byte array - comma-separated values - to an actual byte array.
  • TryParse: Tries to invoke a Parse method from the TResult type on the value.
Unsigned Long
  • Length: Determines the length of a number.
  • StripDigits: Strips a specified number of digits from a number.

⭐ Other Projects

Missing something? Have you tried these excellent projects?

  • Humanizr: Humanizer meets all your .NET needs for manipulating and displaying strings, enums, dates, times, timespans, numbers and quantities.
  • NodaTime: A better date and time API for .NET.

🆘 Contributing

All contributions are greatly welcomed! Please see the guidelines for more information.

If you are developing locally, pull down this repo and build within Visual Studio (any edition), or run dotnet test on any platform; the live branch is continuously built using GitHub Actions.

👱 Authors

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows 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 WhatIsHeDoing.Core:

Package Downloads
WhatIsHeDoing.DomainModels

A library of domain models for .NET.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.2.0 137 3/1/2026
10.0.0 121 2/17/2026
8.0.0 250 10/30/2025
4.0.0 1,090 9/22/2021
3.0.0 957 11/11/2020
2.0.0 1,279 8/5/2019
1.6.1 2,005 12/14/2017
1.6.0 2,346 12/9/2017
1.5.0 1,564 12/7/2017
1.4.0 2,144 12/3/2017
1.3.0 1,549 11/23/2017
1.2.0 1,648 11/19/2017
1.1.0 2,222 7/13/2015
1.0.10 1,491 11/19/2017
1.0.1 1,756 7/11/2015
1.0.0 1,437 7/11/2015

Upgrading to .NET 5!