When must we use extern alias keyword in C#?

masoud ramezani picture masoud ramezani · Feb 27, 2010 · Viewed 11.7k times · Source

When must we use extern alias keyword in C#?

Answer

Jon Skeet picture Jon Skeet · Feb 27, 2010

Basically you only really need it when you want to use two types with the same fully qualified name (same namespace, same type name) from different assemblies. You declare a different alias for each assembly, so you can then reference them via that alias.

Needless to say, you should try to avoid getting into that situation to start with :)