例如我使用 Jumony 解析网页
[Reflection.Assembly]::LoadFile("$scriptPath\Ivony.Core.dll")
[Reflection.Assembly]::LoadFile("$scriptPath\Ivony.Html.dll")
[Reflection.Assembly]::LoadFile("$scriptPath\Ivony.Html.Parser.dll")
[Reflection.Assembly]::LoadFile("$scriptPath\Ivony.Html.Parser.Regulars.dll")
$jp= New-Object Ivony.Html.Parser.JumonyParser;
$htm=$jp.Parse($rs)
会提示:
找不到“Parse”的重载,参数计数为:“1”。
确实 HtmlParserBase 类没有一个参数的Parse方法。但是 ParserExtension 类提供了一个参数的Parse方法
当然只是一个例子。很多组件都有扩展。
要如何使用这些扩展呢。