TJC.Priority 0.2.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package TJC.Priority --version 0.2.0
                    
NuGet\Install-Package TJC.Priority -Version 0.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="TJC.Priority" Version="0.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TJC.Priority" Version="0.2.0" />
                    
Directory.Packages.props
<PackageReference Include="TJC.Priority" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add TJC.Priority --version 0.2.0
                    
#r "nuget: TJC.Priority, 0.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.
#addin nuget:?package=TJC.Priority&version=0.2.0
                    
Install as a Cake Addin
#tool nuget:?package=TJC.Priority&version=0.2.0
                    
Install as a Cake Tool

GitHub Tag GitHub Release NuGet Version

NuGet Downloads Size License

The Priority class is used to create prioritization of items in a list.

Examples

Example - Prioritizing items
var priority1 = new Priority();
var priority2 = new Priority();
var priority3 = new Priority();

priority1.Then(priority2).Then(priority3); // 1, 2, 3
priority3.Before(priority1); // 3, 1, 2
priority2.After(priority3); // 3, 2, 1
priority1.Remove(); // 3, 2
Example - Getting a list of items in priority order
void List<T> GetPriorities<T>(List<T> items)
{
	return items.OrderBy(x => x.Priority).ToList();
}
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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.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 TJC.Priority:

Package Downloads
TJC.Collection.Core

Collection of NuGet Packages

TJC.Logging

Logging

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.4.6 363 4/15/2025
0.4.5 1,052 12/3/2024
0.4.4 99 12/3/2024
0.4.3 1,415 11/15/2024
0.4.2 110 11/10/2024
0.4.1 879 11/5/2024
0.4.0 268 11/5/2024
0.3.1 544 10/26/2024
0.3.0 477 10/20/2024
0.2.2 227 10/20/2024
0.2.1 445 10/16/2024
0.2.0 1,469 10/10/2024
0.1.6 614 9/29/2024
0.1.5 943 9/5/2024
0.1.4 392 9/5/2024
0.1.3 241 9/4/2024
0.1.2 121 9/3/2024
0.1.1 741 6/11/2024
0.1.0 116 6/11/2024