Doulex 4.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Doulex --version 4.0.1                
NuGet\Install-Package Doulex -Version 4.0.1                
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="Doulex" Version="4.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Doulex --version 4.0.1                
#r "nuget: Doulex, 4.0.1"                
#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 Doulex as a Cake Addin
#addin nuget:?package=Doulex&version=4.0.1

// Install Doulex as a Cake Tool
#tool nuget:?package=Doulex&version=4.0.1                

Doulex

Build status GitHub issues GitHub license

Doulex is a toolkits for daily devs.

Nuget packages

Name Version Downloads
Doulex nuget stats

Usage

Basic usage

ObjectExtensions.RemoveNullProperty

RemoveNullProperty can remove null property from object.

var origin = new
{
    Name    = "John",
    Age     = 30,
    Address = (string?) null,
    Married = (bool?) null,
};
var newDynamic = origin.RemoveNullProperty();

// we got a new dynamic object without null property
// {
//     Name = "John",
//     Age = 30,
// }
DisposeTracking

DisposeTracking can let you make call when object is out of scope.

var obj = 100; // your object
using (var tracker = new DisposeTracking(obj, () => Console.WriteLine("Object is disposed.")))
{
    Console.WriteLine(tracker);     // output is 100
    // do something else
}
// output is "Object is disposed."
DoubleExtensions.AlmostEquals

Compare double values with a tolerance

using Doulex;

double a = 10.5;
a.AlmostEquals(10.5); // true

Final

Leave a comment on GitHub if you have any questions or suggestions.

Turn on the star if you like this project.

License

This project is licensed under the MIT License

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 is compatible. 
.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 Doulex:

Package Downloads
Doulex.AspNetCore.Abstractions

Asp net core project toolkit

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
5.16.0 123 4/18/2024
5.15.0 105 4/18/2024
5.14.0 101 4/18/2024
5.13.0 135 4/12/2024
5.12.0 139 4/8/2024
5.11.0 149 3/8/2024
5.10.0 190 2/18/2024
5.9.0 240 1/18/2024
5.8.0 273 12/20/2023
5.7.0 272 12/14/2023
5.6.0 572 2/27/2023
5.5.0 626 2/24/2023
5.4.1 575 2/17/2023
5.4.0 581 2/16/2023
5.3.0 605 2/14/2023
5.2.0 581 2/7/2023
5.1.0 639 1/31/2023
5.0.1 642 1/30/2023
5.0.0 618 1/30/2023
4.0.1 627 1/14/2023
4.0.0 608 1/14/2023
3.0.0 648 1/12/2023
2.0.2 679 1/4/2023
2.0.1 654 1/4/2023
2.0.0 602 1/4/2023
1.4.0 664 12/28/2022
1.3.0 691 12/28/2022
1.2.0 642 12/23/2022
1.1.8 639 12/22/2022
1.1.7 686 12/22/2022
1.1.6 617 12/21/2022
1.1.5 669 11/23/2022
1.1.4 577 11/17/2022
1.1.3 751 10/21/2022
1.1.2 779 10/20/2022
1.1.1 728 10/20/2022
1.1.0 1,247 9/29/2022
1.0.2 754 9/29/2022
1.0.1 802 9/28/2022