Constructor on type not found
That’s because you are using the Activator.CreateInstance overload which accepts an object array, which is supposed to contain a list of constructor parameters. In other words, it’s trying to find a StateLog constructor overload which has 16 parameters, instead of one. This compiles due to array covariance. So when the compiler sees this expression: Activator.CreateInstance(typeof(T), … Read more