MrDHelper 1.0.8
See the version list below for details.
dotnet add package MrDHelper --version 1.0.8
NuGet\Install-Package MrDHelper -Version 1.0.8
<PackageReference Include="MrDHelper" Version="1.0.8" />
paket add MrDHelper --version 1.0.8
#r "nuget: MrDHelper, 1.0.8"
// Install MrDHelper as a Cake Addin #addin nuget:?package=MrDHelper&version=1.0.8 // Install MrDHelper as a Cake Tool #tool nuget:?package=MrDHelper&version=1.0.8
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!
Usage
- Reference to MrdHelper
using MrdHelper
- Use the extension methods that you want.
IEnumerable<T>?.ForEach<T>(Action<T>);
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".GetMd5();
"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
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
}
var finalString = sqlConnectionString.FinalConnectionString;
Roadmap
- Add Common functions.
- Add more functions.
Contact
Nguyễn Quốc Đạt - @NguyenQuocĐat1989
Project Link: https://github.com/dattiphu2022/MrDHelper
Acknowledgments
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 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 | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
added:
Cell model for storing "object's properties" easily.
Add ConnectionStringBuilder with simplyfied properties.
Update: README.md for more details in documentation.