mostafa8026 / PriorityHandler

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:MIT License


Languages

Language:C# 100.0%