It most certainly can, it's just generally more work. If the platform doesn't support it natively, you need some kind of cross-compiler or something of the sort. (Luckily, there's a ton of cross-compilers for C# already out there -- chances are there's one to fit your current project's needs, etc.)

Remember, just because it's written in C# does not mean that it has to be compiled using a C# compiler into compiled C#.

And those compilers don't exist for anywhere near the number of platforms covered by C++ compilers and I doubt very seriously anyone would be straight up insane enough to write them just to use C# syntax on some of those platforms. Not to mention using compiled C# over managed code defeats the entire damn intent of the language.

---If they asked how I died tell them: Still angry.

#121337toothbrushPosted 9/9/2013 1:41:39 PM

C# is nicely designed, but the ties to Microsoft alone makes me avoid it. Also, as already mentioned, the lesser multiplatform support and lower performance are other reasons why I prefer C++.---------------http://img.photobucket.com/albums/v85/hobo2/nowsaving-1.png

#13ElementalWindPosted 9/9/2013 3:49:10 PM

isn't it just a newer C++?It's probably better to think of it as a newer Java. They do have a lot of syntactic similarity with C++, but their overall design is a pretty big departure from C++ (e.g. reference semantics, garbage collection, type constructors in the type system itself instead of through metaprogramming, and so on).---"debates are contests of rhetoric, not argumentative rigor." -DragooneerZero

#14SenkoyPosted 9/9/2013 4:36:47 PM

ElementalWind posted...

isn't it just a newer C++?It's probably better to think of it as a newer Java. They do have a lot of syntactic similarity with C++, but their overall design is a pretty big departure from C++ (e.g. reference semantics, garbage collection, type constructors in the type system itself instead of through metaprogramming, and so on).

Beat me to it. Despite the name, C# is far more similar to Java than C++, so it ends up being similar to comparing C++ to Java. Java takes care of garbage collecting, but for that reason is slower.

SinisterSlay posted...

C++ for performance, C# for easy development.That's basically it.

So when your developing something that must run as fast as possible, you will use C++.When you are developing something that must be developed as fast as possible, you will use C#.

This is pretty much it in a nutshell. Same with C++ vs Java.---My fight stick: http://img703.imageshack.us/img703/2687/sdc10110k.jpgMy team combos: http://www.youtube.com/watch?v=RdoD7BvGUOE