How to know the location of the assembly where it is being loaded from?

When there are multiple versions of the same assembly exist in the machine, it is very easy to get confused about where is the assembly being loaded in a reflection call. Here is a code snippet which can tell you where the the assembly coming from. Console.WriteLine(typeof(ClassName).Assembly.Location);

2