Beispiel #1
0
 static void PrintServerInfo(BusinessServer businessServer)
 {
     Console.WriteLine("---------------");
     Console.WriteLine("Memory:{0,-3} Connection:{1,-4} OS:{2, -5} Feature:{3}",
                       businessServer.Memory,
                       businessServer.Connection,
                       businessServer.OS,
                       businessServer.Feature);
     for (int i = 0; i < businessServer.Purpose.Count; i++)
     {
         Console.WriteLine(businessServer.Purpose[i]);
     }
     Console.WriteLine("---------------");
 }
 public void Reset()
 {
     businessServer = new BusinessServer();
     businessServer.Purpose.Add("for making profit");
 }