How Can I Get C# To Distinguish Between Ambiguous Class Names?

后端 未结 3 677
遥遥无期
遥遥无期 2021-02-07 08:21

How can I get C# to distinguish between ambiguous class types without having to specify the full HtmlAgilityPack.HtmlDocument name every time (it is ambiguous compa

3条回答
  •  庸人自扰
    2021-02-07 08:55

    Use aliases:

    using HapHtmlDocument = HtmlAgilityPack.HtmlDocument;
    using WfHtmlDocument = System.Windows.Forms.HtmlDocument;
    

提交回复
热议问题