mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-31 05:11:08 +00:00
41 lines
1,002 B
C#
41 lines
1,002 B
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()
|
|
{
|
|
Console.WriteLine("Line1");
|
|
Console.WriteLine("Line2");
|
|
Console.WriteLine("Line3");
|
|
}
|
|
}
|
|
}
|