To resolve a namespace conflict between assemblies in C#, I gave one an Alias of NLog
:
Now, I can refer to a namespace within that assembly like so:
public class Logger : NLog::NLog.LogReceiverService
{
// ...
}
However, this won't compile until I use the extern alias
keyword at the top of my file:
extern alias NLog;
My Question:
What purpose does the extern alias
keyword serve? Shouldn't NLog::NLog.LogReceiverService
be sufficient to fully disambiguate the assembly alias, namespace and type I'm referring to?