Forum: NinjaTrader
March 18th, 2015, 12:24 PM
|
Replies: 9
Views: 2,161
Yes, it should. Any property (Key or Value) can...
Yes, it should. Any property (Key or Value) can serve as the sorting element for the collection, it depends which one you use. You can also exchange the KeyValuePair class for any other custom class...
|
Forum: NinjaTrader
March 18th, 2015, 11:34 AM
|
Replies: 9
Views: 2,161
an idea...
...
List<KeyValuePair<string,int> list = new List<KeyValuePair<string,int>>();
list.Add(new KeyValuePair<string,int>("abc", 1);
...
list.Sort(new Comparison<KeyValuePair<string, int>>((s, t)...
|