WhatIsHeDoing.Core
8.0.0
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
<PackageReference Include="WhatIsHeDoing.Core" Version="8.0.0" />
<PackageVersion Include="WhatIsHeDoing.Core" Version="8.0.0" />
<PackageReference Include="WhatIsHeDoing.Core" />
paket add WhatIsHeDoing.Core --version 8.0.0
#r "nuget: WhatIsHeDoing.Core, 8.0.0"
#:package WhatIsHeDoing.Core@8.0.0
#addin nuget:?package=WhatIsHeDoing.Core&version=8.0.0
#tool nuget:?package=WhatIsHeDoing.Core&version=8.0.0
WhatIsHeDoing.Core
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 callingZipJagged.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
- Darren Hickling: https://darrenhickling.com/
| Product | Versions 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. |
-
net8.0
- RoslynSecurityGuard (>= 2.3.0)
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!