MrDHelper 1.0.9

.NET Standard 2.1
dotnet add package MrDHelper --version 1.0.9
NuGet\Install-Package MrDHelper -Version 1.0.9
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="MrDHelper" Version="1.0.9" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MrDHelper --version 1.0.9
#r "nuget: MrDHelper, 1.0.9"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install MrDHelper as a Cake Addin
#addin nuget:?package=MrDHelper&version=1.0.9

// Install MrDHelper as a Cake Tool
#tool nuget:?package=MrDHelper&version=1.0.9

Contributors Forks Stargazers Issues MIT License Nuget version Nuget downloads

About The Project

This project is providing "extension methods" that are usually used in short way. All methods have its own tests, check it on source code and help me to improve it if you can. Thank you!


  1. Reference to MrdHelper
  2. using MrdHelper
  3. Use the extension methods that you want.
IEnumerable<T>?.ForEachAsync<T>(Fun<T,Task>) //awaitable, eg: await IEnumerable<T>?.ForEachAsync(async (t)=> { await Task.Delay(10); });

IList<T>.AddDummyItemsToMaximumCountOf<T>(int collectionFinalCount, T fillValue);

<T>.IsNull(); <T>.NotNull();

bool?.IsFalse(); bool?.IsTrue();
bool?.NotFalse(); bool?.NotTrue();

"string".IsNullOrEmpty(); "string".IsNullOrWhiteSpace();
"string".NotNullOrEmpty(); "string".NotNullOrWhiteSpace();

TaskHelper.RunSync<TResult>(Func<Task<TResult>, TResult>); // eg: var result = TaskHelper.RunSync<TResult>(()=>GetResultAsync());

New in 1.0.8+1.0.9

var someClass = new SomeClass();
var cell = SomeClass.ConvertToCell(someClass);
cell[nameof(SomeClass.Property1)] = newValue;
var otherSomeClass = cell.ConvertTo<SomeClass>();

var sqlConnectionString = new SqlServerConnectionStringBuilder{
	Server = server,
    Database = database,
    UserId = userId,
    Password = passWord,
    Trusted_Connection = trusted,
    ConnectViaIP = viaIp
bool validateResult = sqlConnectionString.ValidateConnectionString();
var finalString = sqlConnectionString.FinalConnectionString;


  • Add Common functions.
  • Add more functions.


Nguyễn Quốc Đạt - @NguyenQuocĐat1989

Project Link:


Use this space to list resources you find helpful and would like to give credit to. I've included a few of my favorites to kick things off!

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.1
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
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
1.0.9 165 7/20/2022
1.0.8 157 7/19/2022
1.0.7 178 7/15/2022
1.0.6 179 7/13/2022
1.0.5 167 7/5/2022
1.0.4 166 7/4/2022
1.0.3 179 7/4/2022
1.0.2 180 7/4/2022
1.0.1 175 7/3/2022
1.0.0 179 7/3/2022

Update: for more details in documentation.