Say I have a base class in Assembly A:
public class MyBaseClass{
public static Assembly GetMyAssembly(){
//determine the Assembly of my subclasses
}
}
Then I create a subclass of that class within Assembly B:
public class MySubClass : MyBaseClass {
}
From there, in my domain specific logic I invoke MySubClass.GetMyAssembly(). This logic may be in the same assembly as MySubClass OR it could be in a separate assembly. How can I determine the assembly containing the subclass that invoking the inherited method? (without overriding it) I have tried to use the different Assembly.Get*() methods in System.Reflection without any luck.