Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 760 Bytes

README.md

File metadata and controls

19 lines (11 loc) · 760 Bytes

PriorityHandler

Build Status

How to use

Nuget package:

Install-Package PriorityHandler -Version 1.0.1

You can simply creat a new list using PriorityList wrapper:

List<PriorityItem<string>> priority_list = new List<PriorityItem<string>>();

Then by the help of PriorityManager class insert, swap and do a lot of priority related stuff like this:

PriorityManager<PriorityItem<string>> priority_manager = new PriorityManager<PriorityItem<string>>();
priority_manager.PriorityInsert(priority_list, line, new PriorityItem<string>((++count).ToString()));
priority_manager.Swap(priority_list, indexA, indexB);