TJC.Priority
0.2.1
See the version list below for details.
dotnet add package TJC.Priority --version 0.2.1
NuGet\Install-Package TJC.Priority -Version 0.2.1
<PackageReference Include="TJC.Priority" Version="0.2.1" />
paket add TJC.Priority --version 0.2.1
#r "nuget: TJC.Priority, 0.2.1"
// Install TJC.Priority as a Cake Addin #addin nuget:?package=TJC.Priority&version=0.2.1 // Install TJC.Priority as a Cake Tool #tool nuget:?package=TJC.Priority&version=0.2.1
<a href="https://github.com/TJC-Tools/TJC.Priority/tags"> <img alt="GitHub Tag" src="https://img.shields.io/github/v/tag/TJC-Tools/TJC.Priority?style=for-the-badge&logo=tag&logoColor=white&labelColor=24292f&color=blue" /> </a>
<a href="https://github.com/TJC-Tools/TJC.Priority/releases/latest"> <img alt="GitHub Release" src="https://img.shields.io/github/v/release/TJC-Tools/TJC.Priority?style=for-the-badge&logo=starship&logoColor=D9E0EE&labelColor=302D41&&color=green&include_prerelease&sort=semver" /> </a>
<a href="https://www.nuget.org/packages/TJC.Priority"> <img alt="NuGet Version" src="https://img.shields.io/nuget/v/TJC.Priority?style=for-the-badge&logo=nuget&logoColor=white&labelColor=004880&color=blue" /> </a>
<br/>
<a href="https://www.nuget.org/packages/TJC.Priority"> <img alt="NuGet Downloads" src="https://img.shields.io/nuget/dt/TJC.Priority?style=for-the-badge&logo=nuget&logoColor=white&labelColor=004880&color=yellow" /> </a>
<a href="https://github.com/TJC-Tools/TJC.Priority"> <img alt="Repository Size" src="https://img.shields.io/github/repo-size/TJC-Tools/TJC.Priority?style=for-the-badge&logo=files&logoColor=white&labelColor=24292f&color=orange" /> </a>
<br/>
<a href="https://www.nuget.org/packages/TJC.Priority"> <img alt="Last commit" src="https://img.shields.io/github/last-commit/TJC-Tools/TJC.Priority?style=for-the-badge&logo=git&logoColor=D9E0EE&labelColor=302D41&color=mediumpurple"/> </a>
<a href="LICENSE"> <img alt="License" src="https://img.shields.io/github/license/TJC-Tools/TJC.Priority.svg?style=for-the-badge&logo=balance-scale&logoColor=white&labelColor=333333&color=blueviolet" /> </a>
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 | Versions 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. |
-
net8.0
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.2)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on TJC.Priority:
Package | Downloads |
---|---|
TJC.Logging
Logging |
|
TJC.Collection.Core
Collection of NuGet Packages |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.4.3 | 249 | 11/15/2024 |
0.4.2 | 79 | 11/10/2024 |
0.4.1 | 830 | 11/5/2024 |
0.4.0 | 238 | 11/5/2024 |
0.3.1 | 500 | 10/26/2024 |
0.3.0 | 448 | 10/20/2024 |
0.2.2 | 200 | 10/20/2024 |
0.2.1 | 406 | 10/16/2024 |
0.2.0 | 952 | 10/10/2024 |
0.1.6 | 590 | 9/29/2024 |
0.1.5 | 910 | 9/5/2024 |
0.1.4 | 368 | 9/5/2024 |
0.1.3 | 216 | 9/4/2024 |
0.1.2 | 98 | 9/3/2024 |
0.1.1 | 720 | 6/11/2024 |
0.1.0 | 94 | 6/11/2024 |