Warning: Parameter 1 to wp_default_styles() expected to be a reference, value given in /home/www/dotmos/wp-includes/plugin.php on line 546

Warning: Parameter 1 to wp_default_scripts() expected to be a reference, value given in /home/www/dotmos/wp-includes/plugin.php on line 546
DOTMOS » Programming

How to sort Lists in C# or: IComparer rocks!

Posted by on Feb 26, 2014 in Game Development, Programming | No Comments

For a game i’m working on i needed to sort cities based on the commodities that are sold in these cities. The list should be sortable by buy/sell price, estimated profit with current player cargo and city names. As my commodity and city classes are quite complex i feared that i would have to write […]