Skip to content

Help developers in priority management of any list with any items in it.

License

Notifications You must be signed in to change notification settings

mostafa8026/PriorityHandler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);