Efter att ha testkört koden under Ubuntu 12.04 med mono-mcs (en C# clone i Linux-miljön) så kan jag konstatera att resultatet av testkörningen blev identiskt med Windows 7.
Jag bifogar Makefile för den som vill testa:
Kod:
#################################################################
# File: Makefile
# Author: Conny Westh, 2012
#################################################################
# This is a sample program in C#, works perfect in both Windows 7
# with Visual Studio 2010 and in ubuntu 12.04 with mono-mcs
# Command: sudo apt-get install mono-mcs
# to optain the C# compiler needed in ubuntu.
# This sample code demonstrates inheritance, property get and set
# override of method ToString(), Polymorphism, calculated read only
# property...
#################################################################
person : Program.cs Person.cs PersonAge.cs
mcs -out:person Program.cs Person.cs PersonAge.cs
@chmod 777 person
.PHONY : clean
clean :
@rm -f person *.??~ Makefile~