Arrange items in a list according to a list of keys(blog.andreloker.de)
submitted by
aloker(1810) 3 years, 11 months ago
Recently I needed an algorithm to change the order of elements in an item list of type IList<T>. The items had a unique key. The new order of the items was defined by a second collection which only contained the keys in the new order. Therefore, the algorithm had to move the elements in the IList<T> in such a way that their order matches the order of the key in the key collection
|category: C#
|Views: 4
tags:
C# another
Everyones tags:
Your Tags: