public string ToAnotherFromat(DocumentConverterProvider provider) { string output = string.Empty; foreach (DocumentPart part in this.parts) { output += $"{part.ToAnotherFormat(provider)}\n"; } return(output); }
public string ToAnotherFormat(DocumentConverterProvider provider) { return(provider.Convert(this)); }