Running Mono on Ubuntu 9.10

Main.cs

using System;
using SdlDotNet;
using SdlDotNet.Core;
using SdlDotNet.Graphics;
using System.Drawing;

namespace TroutWars
{
	class MainClass
	{
		public static void Main(string[] args)
		{
			Video.SetVideoMode(1024, 768);
			Events.Quit += new EventHandler < QuitEventArgs > (Quit);
			EventArgs.Run();
		}
		
		void Quit(object sender, QuitEventArgs e)
		{
			Events.QuitApplication();
		}
	}
}

TroutWars.cs

using System;
using SdlDotNet;
using SdlDotNet.Core;
using SdlDotNet.Graphics;
using System.Drawing

namespace TroutWars
{
	
	
	public class TroutWars
	{
		
		public TroutWars()
		{
			Console.WriteLine("Hello World!");
		}
	}
}

Thanks for any and all help.

Recommended Answers

All 2 Replies

Error says that namespace is c# keyword and it is used as an identifier.

Yea I seen that, I put it at the top of the page!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.