public void Write(string filePath, object value) { ChannelNodeDefinition definition = (ChannelNodeDefinition)value; XElement doc = ChannelNodeDefinition.WriteXml(definition); doc.Save(filePath); }
public object Read(string filePath) { XElement element = Helper.LoadXml(filePath); return(ChannelNodeDefinition.ReadXml(element)); }