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)); } } } }
public Drum CreateHistoryMarker() { Isotope[] contents = new Isotope[NumberOfComponents]; CurrentContents.CopyTo(contents); return(new Drum(contents.ToList())); }