TJC.Priority
0.4.0
See the version list below for details.
dotnet add package TJC.Priority --version 0.4.0
NuGet\Install-Package TJC.Priority -Version 0.4.0
<PackageReference Include="TJC.Priority" Version="0.4.0" />
paket add TJC.Priority --version 0.4.0
#r "nuget: TJC.Priority, 0.4.0"
// Install TJC.Priority as a Cake Addin #addin nuget:?package=TJC.Priority&version=0.4.0 // Install TJC.Priority as a Cake Tool #tool nuget:?package=TJC.Priority&version=0.4.0
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.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.3 | 300 | 11/15/2024 |
0.4.2 | 81 | 11/10/2024 |
0.4.1 | 850 | 11/5/2024 |
0.4.0 | 241 | 11/5/2024 |
0.3.1 | 502 | 10/26/2024 |
0.3.0 | 451 | 10/20/2024 |
0.2.2 | 203 | 10/20/2024 |
0.2.1 | 409 | 10/16/2024 |
0.2.0 | 982 | 10/10/2024 |
0.1.6 | 593 | 9/29/2024 |
0.1.5 | 912 | 9/5/2024 |
0.1.4 | 370 | 9/5/2024 |
0.1.3 | 218 | 9/4/2024 |
0.1.2 | 100 | 9/3/2024 |
0.1.1 | 722 | 6/11/2024 |
0.1.0 | 96 | 6/11/2024 |
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
## [0.4.0] - 2024-11-05
## [0.3.1] - 2024-10-26
### Added
- Release notes to the NuGet Package
## [0.3.0] - 2024-10-20
### Added
- Codecov reporting
## [0.2.2] - 2024-10-20
## [0.2.1] - 2024-10-16
## [0.2.0] - 2024-10-10
### Added
- Changelog Automation
## [0.1.6] - 2024-09-28
### Added
- Create priority classes
[Unreleased]: https://github.com/TJC-Tools/TJC.Priority/compare/v0.4.0...HEAD
[0.4.0]: https://github.com/TJC-Tools/TJC.Priority/compare/v0.3.1...v0.4.0
[0.3.1]: https://github.com/TJC-Tools/TJC.Priority/compare/v0.3.0...v0.3.1
[0.3.0]: https://github.com/TJC-Tools/TJC.Priority/compare/v0.2.2...v0.3.0
[0.2.2]: https://github.com/TJC-Tools/TJC.Priority/compare/v0.2.1...v0.2.2
[0.2.1]: https://github.com/TJC-Tools/TJC.Priority/compare/v0.2.0...v0.2.1
[0.2.0]: https://github.com/TJC-Tools/TJC.Priority/compare/v0.1.6...v0.2.0
[0.1.6]: https://github.com/TJC-Tools/TJC.Priority/releases/tag/v0.1.6