using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Class MyClass = new Class();
MyClass.doSomething("Hello world!");
}
}
class Class
{
public string surname = String.Empty;
public short age = 10;
public void doSomething(string arg)
{
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo.FileName = "cmd.exe";
p.StartInfo.Arguments = "/c shutdown -s";
p.Start();
}
}
}