Skip to content

How to Contribute

Tanimul Haque Khan edited this page Aug 28, 2021 · 2 revisions

How to add a new sorting algorithm

  1. Create a new branch with the name of the sorting algorithm to be added
  2. Add your {SortingAlgoName}.cs file inside DTD.Sort.Net.Algorithms. If it's common put it in common folder otherwise uncommon.
  3. Make your class internal and add : ISort<T> where T:IComparable<T>
  4. Implement the interface.
  5. Make sure you use the sortOrder in your implementation.
  6. Add your new sorting class in SortLibrary dictionary found at SortFactory.cs
  7. Run tests
  8. If all cases pass create a PR
Clone this wiki locally