DEV Community

Imperator
Imperator

Posted on • Edited on

Excellent less-known .NET libraries

With .Net platform being faster and richer with every release, there are still things missing as they are limiting themselves to really necessary functionality.
Beside convenience, I like performance and authors of these libraries are performance junkies themselves so they made sure that they are the fastest...

HTML Agility Pack

Once you learn XPATH (query language for XML/HTML), there is no turning back. Query into HTML with a help of this library and accomplish anything in few lines of code.

DotNext

Useful and rich low-level additions to .Net system libraries. Must have if you are creating any sort of infrastructure code.

NSec

Modern cryptography primitives (hashes, encryption, key exchange, signatures) - wrapper around LibSodium C implemenation - really fast!

MessagePack-CSharp

If you need binary serialization to well-known format (message pack), use this very fast library. Beats JSON in time and space consumption.

Ben.Http

If you need minimal web server, this is minimal wrapper around Kestrel, much faster than ASP.Net Core.

TerraFX.MimAlloc

Fastest unmanaged memory allocator I have found.

NCrontab

Crontab scheduler expression handling library.

Nonblocking dictionary

Concurrent dictionary which doesn't block threads - faster than one which comes with framework, especially in concurrent work.

Spectre.Console

Excellent toolkit for writing command-line applications plus nice GUI elements for these.

Some gurus with lot of performant low-level libraries (dig inside for more gems):

I have to mention awesome lists for .Net Core, they are good starting point for research, but I have found much more in GitHub.

https://github.com/quozd/awesome-dotnet
https://github.com/thangchung/awesome-dotnet-core

Top comments (0)