linqPlusPlus 1.2.0

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

// Install linqPlusPlus as a Cake Tool
#tool nuget:?package=linqPlusPlus&version=1.2.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, bool nullPart = true, bool notNullPart = true)

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.

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

    • No dependencies.

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 818 1/21/2024
1.4.5 1,785 8/20/2023
1.4.2 2,615 10/12/2022
1.4.1 823 8/31/2022
1.4.0 466 8/20/2022
1.3.0 1,118 6/15/2022
1.2.0 444 6/7/2022
1.0.1 460 5/29/2022
1.0.0 479 5/15/2022