Sunday, April 22, 2012

C# Examples with Mono on the Mac

I had some interesting ASP.Net at work this week so I thought I would try some of the examples in Ben Watson's book, "C# 4.0 How-To". This compiles and runs using Mono on the Mac.
[greg:csharp] gmcs accessors.cs
[greg:csharp] mono accessors.exe
hello $1.25 + $1.50 = $2.75