public void Save(string filePath) { if (string.IsNullOrWhiteSpace(filePath)) { throw new InvalidOperationException("A name is required."); } filePath = Path.Combine(DefinitionDirectory, Path.GetFileName(filePath)); IWriter writer = new XmlChannelNodeTemplateWriter(); writer.Write(filePath, this); this.FilePath = filePath; }
public void Save(string filePath) { if(string.IsNullOrWhiteSpace(filePath)) throw new InvalidOperationException("A name is required."); filePath = Path.Combine(DefinitionDirectory, Path.GetFileName(filePath)); IWriter writer = new XmlChannelNodeTemplateWriter(); writer.Write(filePath, this); this.FilePath = filePath; }