List<> own comparer
Posted
by netmajor
on Stack Overflow
See other posts from Stack Overflow
or by netmajor
Published on 2010-03-24T16:23:36Z
Indexed on
2010/03/24
16:43 UTC
Read the original article
Hit count: 321
I have a List where element is:
struct element {
double priority;
int value;
}
How can I implement my own comparer which allow me sort List by priority ? I try with SortredList... but it don't allow douplicated keys :(
Big thanks for help!
© Stack Overflow or respective owner