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
Declare conflicting namespaces at different levels, most inner one will be used without ambiguity:
using System.Windows.Forms;
namespace MyNamespace {
using HtmlAgilityPack;
public class Class1 {
private HtmlDocument _doc; // HtmlAgilityPack.HtmlDocument
}