linqPlusPlus 8.0.0

dotnet add package linqPlusPlus --version 8.0.0                
NuGet\Install-Package linqPlusPlus -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="linqPlusPlus" Version="8.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add linqPlusPlus --version 8.0.0                
#r "nuget: linqPlusPlus, 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.
// Install linqPlusPlus as a Cake Addin
#addin nuget:?package=linqPlusPlus&version=8.0.0

// Install linqPlusPlus as a Cake Tool
#tool nuget:?package=linqPlusPlus&version=8.0.0                

Linq plus plus

lightweight extensions to make your every day life easier

Dictionary<string, object> ToDictionary(this object source)

this method converts any objects to a dictionary, where the property name is key. use with care bcz of boxing/unboxing.

bool HasContent(this string str)

check if string is null or empty or whith space.

bool IfNull(this object obj, Func<bool> nullPart, Func<bool> notNullPart)

check if an object is null and then apply the condition, much like IF(_,+,*) in vb.

use it in expressions because null propagation is nut supported there

dynamic DeselectObject<TSource, Tkey>(this TSource source, Expression<Func<TSource, Tkey>> deselect)

introduce some field to not includ in final result. for example you can: userObj.deselect((user n)=> n.password) to exclude only password from result.

this method return a dynamic object, much usefull in KISS apis.

IEnumerable<dynamic> Deselect<TSource, Tkey>(this IEnumerable<TSource> source, Expression<Func<TSource, Tkey>> deselect)

much like the other one above, but on collections.

public static IQueryable<TEntity> Track<TEntity>(this IQueryable<TEntity> query, bool track = true)

Parameterized tracking, more control less code.

public static string? ExceptionStringifier(this Exception? exc)

Easy way to stringfy exceptions without loosing details and serialization complications

Disclaimer

the term linq plus plus has chosen to resemble how this package is easy to use and fimiliar.

there is no relation between this package and official linq library 😃

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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on linqPlusPlus:

Package Downloads
QueDuler.Broker.Kafka

Package Description

Kavenegar.Unofficial

روش ارتباطی مدرن با کاوه نگار و سازگاری کامل با دات نت کور

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
8.0.0 909 1/21/2024
1.4.5 1,885 8/20/2023
1.4.2 2,621 10/12/2022
1.4.1 828 8/31/2022
1.4.0 471 8/20/2022
1.3.0 1,123 6/15/2022
1.2.0 449 6/7/2022
1.0.1 465 5/29/2022
1.0.0 484 5/15/2022