Castle Windsor IoC property injection. Using property from BaseClass inside ChildClass constructor
问题 I have a base class as following public class BaseClass { public ISomeObject Property { get; set; } } and ChildClass inherited from BaseClass.I need to use Property from BaseClass inside ChildClass constructor, but it's not initialized by IoC as I want and has value null. And if I use it inside ChildClass's methods, Property is initialized. What am I doing wrong? Here is how I register ISomeObject in IoC container container.Register( Component.For<ISomeObject>() .ImplementedBy<WebSomeObject>(