At least one object must implement IComparable

Well, you’re trying to use SortedSet<>… which means you care about the ordering. But by the sounds of it your Player type doesn’t implement IComparable<Player>. So what sort order would you expect to see? Basically, you need to tell your Player code how to compare one player with another. Alternatively, you could implement IComparer<Player> somewhere … Read more

Categories c# Tags

Playing a MP3 file in a WinForm application

The link below, gives a very good tutorial, about playing mp3 files from a windows form with c#: http://www.daniweb.com/software-development/csharp/threads/292695/playing-mp3-in-c This link will lead you to a topic, which contains a lot information about how to play an mp3 song, using Windows forms. It also contains a lot of other projects, trying to achieve the same … Read more

C++ performance vs. Java/C#

JIT vs. Static Compiler As already said in the previous posts, JIT can compile IL/bytecode into native code at runtime. The cost of that was mentionned, but not to its conclusion: JIT has one massive problem is that it can’t compile everything: JIT compiling takes time, so the JIT will compile only some parts of … Read more

How to use __doPostBack()

You can try this in your web form with a button called btnSave for example: And in your code behind add something like this to read the value and operate upon it: Give that a try and let us know if that worked for you.