i create the test code
var type = typeof(TestClass);
var instance = Activator.CreateInstance(type);
((TestClass)instance).Print();
public class TestClass
{
public TestClass()
{
AnotherTestClass.Print();
}
public void Print()
{
Debug.WriteLine("### TestClass.Print Method Invoked");
}
}
public class AnotherTestClass
{
public static void Print()
{
Debug.WriteLine("### AnotherTestClass.Print Method Invoked");
}
}
and it worked fine, i think the problem is in that static method that you call.