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
HtmlAgilityPack.HtmlDocument
You can define an alias for one namespace, e.g:
using hap = HtmlAgilityPack;
and then use the alias instead of the full namespace:
hap.HtmlDocument doc = new hap.HtmlDocument;