We have hit an issue where we would like to inject a dependency into an object that has been constructed via reflection:
Type _type = Type.GetType(className, true, true);
ConstructorInfo _ctor = _type.GetConstructor(new[] { typeof(MyClass) });
IReg _reg = (IReg)_ctor.Invoke(new object[] { _myClass });
The injection does not seem to be happening here using property injection. Is it not possible? How can we get around this issue? Thanks.