public PronunciationInfoContainer Clone() { // var result = (PronunciationInfoContainer)MemberwiseClone(); var result = new PronunciationInfoContainer(); result.Items = new List<PronunciationInfo>(Items); return result; }
// Static members public static PronunciationInfoContainer Load(string fileName) { var container = new PronunciationInfoContainer(); var xdocument = FileUtility.LoadXml(fileName); container.Items = xdocument.Descendants("pronunciationInfo").Select(x => (PronunciationInfo)x).ToList(); return container; }