The C# (.NET) Thread 1 reply

Please wait...

G.R.A.E.M.E. VIP Member

OW & HS Addict

178,776 XP

14th August 2008

0 Uploads

15,860 Posts

0 Threads

#1 6 years ago
DEATH TO THE C/C-- THREAD!

[php] namespace CSharpThread { class Program : Shell { public enum Status { WIN, LOSE, UNKNOWN }

static void Main(string[] args) { Status m_status = Status.UNKNOWN;

if (reply >= 1) m_status = Status.WIN; else if (reply == 0) m_status = Status.LOSE; else m_status = Status.UNKNOWN;

CheckAbre(m_status); }

private Status CheckAbre(Status m_status) { switch(m_status) { case Status.WIN: Console.WriteLine("LOL, LOSERS!"); break; case Status.LOSE: Console.WriteLine("Ow, {0}", InsertOkayDudeMeme()); break; case Status.UNKNOWN: Console.WriteLine("Wat..."); break; default: break; }

return m_status; } } } [/php]


Formerly known as Graeme and Arld.



NuclearTurboPopeXVII

Will code c++ for food.

50 XP

13th August 2010

0 Uploads

778 Posts

0 Threads

#2 6 years ago

Get back in the kitchen with your garbage collectors, woman!