NetFabric 1.5.0

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

// Install NetFabric as a Cake Tool
#tool nuget:?package=NetFabric&version=1.5.0

NetFabric

Defines classes and structs common to other NetFabric projects.

Throw

Defines a set of static methods to throw exceptions.

Methods that throw exceptions cannot be inlined by the JIT compiler. Only if thrown within a called method. Using the methods in this class allows exceptions to be thrown and still let the method be a candidate to be inlined.

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static ReadOnlyListWrapper<T> AsReadOnlyList<T>(T[] source)
    => source switch
    {
        null => Throw.ArgumentNullException<ReadOnlyListWrapper<T>>(nameof(source)),
        _ => new ReadOnlyListWrapper<T>(source)
    };

Credits

The following open-source projects are used to build and test this project:

License

This project is licensed under the MIT license. See the LICENSE file for more info.

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  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 was computed. 
.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.
  • .NETStandard 2.0

    • No dependencies.
  • net5.0

    • No dependencies.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on NetFabric:

Package Downloads
NetFabric.Numerics.Tensors The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

This library, based on .NET generic math, provides methods for performing mathematical operations over spans of value types. These operations can be accelerated using SIMD operations supported by the CPU where available.

NetFabric.Numerics.Angle The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

A strongly-typed representation of an angle. The explicit declaration of the units in creation and reading methods, reduces the tipical confusion when dealing with angles. Includes conversion, linear interpolation, reduction, reference angle, comparison, classification, trigonometry and algebra operations.

NetFabric.ForEachEx The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Enhances the functionality of the ForEach method, making it available for use with all types of collections.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on NetFabric:

Repository Stars
NetFabric/LinqBenchmarks
Benchmarking LINQ and alternative implementations
Version Downloads Last updated
1.5.0 457 12/4/2023
1.4.2 79 12/3/2023
1.4.1 184 10/18/2023
1.4.0 77 10/18/2023
1.3.1 104 10/9/2023
1.3.0 212 6/8/2023
1.2.0 123 6/3/2023
1.1.0 100 6/3/2023
1.0.0 113 5/26/2023

Add TryGetSpan() extension method.