Example #1
0
        public string ToAnotherFromat(DocumentConverterProvider provider)
        {
            string output = string.Empty;

            foreach (DocumentPart part in this.parts)
            {
                output += $"{part.ToAnotherFormat(provider)}\n";
            }

            return(output);
        }
Example #2
0
 public string ToAnotherFormat(DocumentConverterProvider provider)
 {
     return(provider.Convert(this));
 }