public static PeptideFilterOptions LoadOptions(XElement parentNode) { var result = new PeptideFilterOptions(); result.Load(parentNode); return(result); }
public void Test() { PeptideFilterOptions option = new PeptideFilterOptions() { FilterBySequenceLength = true, MinSequenceLength = 6 }; XElement root = new XElement("Root"); option.Save(root); PeptideFilterOptions target = new PeptideFilterOptions(); target.Load(root); Assert.AreEqual(option.FilterBySequenceLength, target.FilterBySequenceLength); Assert.AreEqual(option.MinSequenceLength, target.MinSequenceLength); }