public bool Visit(ElementNode element, object parameter) { if (element.Name.EqualsIgnoreCase("tr") && element.Children.Count == 2) { ElementNode tdNode1 = element.Children[0]; ElementNode tdNode2 = element.Children[1]; if (tdNode1.Children.Count == 1 && tdNode1.Children[0].Name.EqualsIgnoreCase("a")) { string functionName = element.Root.TextProvider.GetText(tdNode1.Children[0].InnerRange); if (functionName.IndexOf('&') >= 0) { functionName = WebUtility.HtmlDecode(functionName); } else if (!IsValidName(functionName)) { return(true); } NamedItemType itemType = GetItemType(functionName, tdNode1); if (itemType != NamedItemType.None) { string functionDescription = element.Root.TextProvider.GetText(tdNode2.InnerRange) ?? string.Empty; _functions.Add(new NamedItemInfo(functionName, functionDescription, itemType)); } } } return(true); }
public NamedItemInfo(string name, string actualName, string description, NamedItemType type) { Name = name; ActualName = actualName; Description = description; ItemType = type; }
public NamedItemInfo(string name, string actualName, string description, NamedItemType type) { Name = name; ActualName = actualName; Description = description; ItemType = type; }
public NamedItemInfo(string name, string description, NamedItemType type) : this(name, name, description, type) { }
public NamedItemInfo(string name, NamedItemType type) : this(name, string.Empty, type) { }
public NamedItemInfo(string name, NamedItemType type) : this(name, string.Empty, type) { }
public NamedItemInfo(string name, string description, NamedItemType type) : this(name, name, description, type) { }