Tuesday, February 10, 2009

C# Lambda Expression on MonoDevelop and Ubuntu

I always wanted to try out coding C# application on Ubuntu Linux. The most popular IDE of choices for this would be MonoDevelop by Mono Project. I installed MonoDevelop through Synaptic the same way I did with other applications.

It was a surprise to me to found out that Mono even supports some new features from of C# such as Lambda Expression and Object Initializer!

The only problem is their IDE, MonoDevelop, still not support autocompletion (a.k.a. Intellisense) of Lambda Expressions and Object Initializers. Moreover, it marks the code as error by underlining them in red.

In conclusion, Mono looks promising. And I just can't wait to see more Linux people coding new apps in C#!


Michael Hutchinson said...

MonoDevelop 2.0, currently in beta, supports C# 3 :-)

.:: m3rLinEz ::. said...

@Michael Will try it out soon! :D

Huu Bang said...

Ya, my dad didn't like it because it didn't have autocomplete feature :P anyway, i was wondering why we need to run .net in other platform in the first place? isn't .net supposed to be developed and run on Windows?

.:: m3rLinEz ::. said...

@Huu Bang Having your .NET run and use your C# on multiple platforms is great, isn't it :) ?

Anonymous said...

I don't know how I stumbled across your blog at 3am, but, long story short, Linux developers are encouraged to not write code in C#. Several distributions have gone so far as to remove all C# programs from their default installation (and even repositories). Most were replaced with their C/C++ (or other) equivalents, and if they didn't have one, it was made. Tomboy is a good example of this. I'll put a link at the bottom for one view on this. That being said, just scanning through your blog, you seem to have a good head on your shoulders and I'm glad to see that you're jumping right into multi-threaded code. I'm impressed. Keep up the good work. If you ever want to get some more dirt on your hands, there will always be a place in the Linux community for your talents. I would recommend Fedora, but that's just me :). Hop in. Show off. We're friendly. :) You'll be glad you did. And, if nothing else, it will be good to add additional projects that you have worked onto your resume'.


Nick said...

I know this is an old post but I'll throw in my 2 cents. I really like Ubuntu, and FOSS in general, but C# is a great language. I personally think that Microsoft ripped off Java big time, but they did it better than Java and more organized. I think the ability to write cross platform .NET code is awesome. I checked out the first version of MonoDevelop and was impressed, but it had a long way to go to catch up to VS.NET. I'm looking forward to giving it another shot now that Lucid Lynx is out.
Well written blog, keep it up!

manbeast said...

Anonymous: you provide like guidance, other than a clear bigotry against Mono, C#, MS etc. This is no utopia world, any longer, and battle lines are not young idealistic java programmers and linux on one hand, against MS on the other... There are so many cross cutting and platform concerns these days, it is mindboggling. windows mobile be a great new platform, for no other reason than... it will have MS Office built in.