A library containing several extensions that aim to standardize and extend the .NET Framework functionality.
$ dotnet add package IX.StandardExtensionsIX.StandardExtensions is a .NET library that seeks to implement various extensions in order to standardize access to some functionality.
The motivation behind this library was introduced in .NET 4 where the
List<T> class
introduced the ForEach method. Arrays have their own static ForEach method (which turns out to be
extremely slow compared to the foreach cycle), whereas IEnumerable do not have a ForEach at all.
Then came the Task Parallel Library which introduced Parallel.ForEach, which uses IEnumerable as a parameter.
So I came up with this library that exposes extension methods which give the same ForEach approach to enumerable and to array.
Furthermore, the ICloneable interface is recommended by MSDN to not be used at all, leaving us with no baked-in way to define an object which can have shallow clones or an object which can have deep clones. I had to make my own.
This is, in a nutshell, how I came up with this library.
Documentation is available at this address (and is currently under construction :construction: ).
Requirements for IX.StandardExtensions are the same across IX projects. This page lists estimative .NET version support information across various frameworks and OSes.
...and many many extension methods, as well as other goodies.
Contributing can be done by anyone, at any time and in any form, as long as the contributor has read the contributing guidelines beforehand and tries their best to abide by them.
This project uses the MIT license.
Additionally, the character set detection engine featured at IX.StandardExtensions.Globalization takes bits and pieces from various other projects, and is licensed as such. You can find the additional licenses in /src/IX.StandardExtensions/StandardExtensions/Globalization/CharsetDetection/Licenses.
The character set detector itself is based (and imports most of the code from) Julian Verdurmen's UTF-Unknown project. All applicable licenses translate to this code. Changes from that project are:
I have made an effort to keep the original files (headers and license notice included) intact as much as possible, however, adaptations will have occurred. I do not take any credit for that part of the code, all of it goes to Julian and the respective contributors and original developers.