Exemple #1
0
        private static string Output(Document document, DocumentPartVisitor visitor)
        {
            string output = string.Empty;

            foreach (DocumentPart part in document.parts)
            {
                output += $"{visitor.DynamicVisit(part)}\n";
            }

            return(output);
        }
 public string ToVisitorType(DocumentPartVisitor visitor)
 {
     return(ToExactType(p => visitor.Visit(p)));
 }