C# Programming
08-21-2009, 08:27 PM
Hello!
How can i wirte this code into a switch an case?
switch(get)
if (get.Contains("rHerunterfahren"))
{
string[] get_Split = get.Split('~');
int zeit = Convert.ToInt32(get_Split[1]);
System.Diagnostics.Process.Start("shutdown", "-s -t " + zeit.ToString());
}
How can i wirte this code into a switch an case?
switch(get)
if (get.Contains("rHerunterfahren"))
{
string[] get_Split = get.Split('~');
int zeit = Convert.ToInt32(get_Split[1]);
System.Diagnostics.Process.Start("shutdown", "-s -t " + zeit.ToString());
}