예제 #1
0
 private static IEnumerable <Isotope> ExtractInitialDrumInformation(this XmlDocument xDoc)
 {
     // Extract the isotope nodes from the loaded XML file.
     if (xDoc.HasChildNodes)
     {
         foreach (XmlElement element in xDoc.ChildNodes)
         {
             if (element.Name == "Isotope")
             {
                 yield return(Isotope.LoadFromFile(element));
             }
         }
     }
 }
예제 #2
0
 public Drum CreateHistoryMarker()
 {
     Isotope[] contents = new Isotope[NumberOfComponents];
     CurrentContents.CopyTo(contents);
     return(new Drum(contents.ToList()));
 }