From a6080874c7092d307b0f9c46df28ffd1161c5522 Mon Sep 17 00:00:00 2001 From: Christophe Chevalier Date: Wed, 17 Jul 2013 14:17:59 +0200 Subject: [PATCH] Create HelloWorld.cs test test test --- HelloWorld.cs | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 HelloWorld.cs diff --git a/HelloWorld.cs b/HelloWorld.cs new file mode 100644 index 0000000..0c8f45a --- /dev/null +++ b/HelloWorld.cs @@ -0,0 +1,45 @@ +using System; + +namespace Hello +{ + + public static class World() + { + + public static bool IsWorldTakenOver { get; private set; } + + public static void TakeOverTheWorld() + { + + throw new NotImplementedException(); + } + + public bool TryTakeOverTheWorld() + { + try + { + Console.WriteLine("Taking over the world..."); + TakeOverTheWorld(); + IsWorldTakenOver = true; + Console.WriteLine("World domination has been achieved !!!"); + + } + catch(Exception e) + { // Narf ? + Console.Error.WriteLine("Narf? " + e.ToString()); + IsWorldTakenOver = false; + } + + } + + public static void Main(string[] args) + { + while(!TryTakeOverTheWorld()) + { + Thread.Sleep(TimeSpan.FromDays(1)); + } + } + + + } +}