81
private List<IHtmlNode> nodes = new List<IHtmlNode>();
1
using System;
2
using System.Collections.Generic;
3
4
public interface IOperation
5
{
6
void Apply(HeadingNode node);
7
void Apply(AnchorNode node);
8
}
9
10
public class HighlightOperation: IOperation
11
{
12
public void Apply(HeadingNode node)
13
{
14
Console.WriteLine("Higlighting heading");
15
}
16
public void Apply(AnchorNode node)
17
{
18
Console.WriteLine("Higlighting anchor");
19
}
20
}
21
22
public class PlainTextOperation: IOperation
23
{
24
public void Apply(HeadingNode node)
Cached Result
606.00
10,605.00
100,495.00
10,605.00
100,495.00