How to pass parent/child class as constructor parameter with structuremap?
问题 Interface: public interface IPricingFactorsRepository { IList<LrfInputRates> GetLeaseRateFactorList( string programCode, string countryCode, string currencyCode, string leaseTerm); } Got below derived/implemented class: public class PricingFactorsRepository : IPricingFactorsRepository { } public class OverridePricingFactorsRepository : PricingFactorsRepository { } Outside, there is such class that accept the interface as constructor parameter: public class PricingHandler { public