示例#1
0
 static void WriteTurb(Dictionary <int, Engine> collection)
 {
     foreach (KeyValuePair <int, Engine> elem in collection)
     {
         TurbojetEngine someEng = elem.Value as TurbojetEngine;
         if (someEng != null)
         {
             someEng.Show();
         }
     }
 }
示例#2
0
 static void WriteTurb(Queue collection)
 {
     foreach (object elem in collection)
     {
         TurbojetEngine someEng = elem as TurbojetEngine;
         if (someEng != null)
         {
             someEng.Show();
         }
     }
 }