Cosmos/source2/Users/Matthijs/MatthijsPlayground/Kernel.cs
mterwoord_cp c7a3776db5
2011-02-26 13:01:44 +00:00

46 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Text;
using Sys = Cosmos.System;
namespace MatthijsPlayground
{
public class Kernel : Sys.Kernel
{
protected override void BeforeRun()
{
Console.WriteLine("Cosmos booted successfully. Type a line of text to get it echoed back.");
}
protected override void Run()
{
string xTest;
DoSomething();
xTest = "test";
var xSB = new StringBuilder("AAAA");
if (xSB[0] == 'A')
{
Console.WriteLine("1");
}
else
{
Console.WriteLine("2");
}
while (true)
;
}
private static void DoSomething()
{
WriteLine("Line1");
WriteLine("Line2");
WriteLine("Line3");
}
private static void WriteLine(string line)
{
Console.WriteLine(line);
}
}
}