Autofac: Resolving variant types with both in and out type arguments
问题 This question is a follow up of my previous question: Autofac: Hiding multiple contravariant implementations behind one composite. I'm trying to find the boundries of what we can do with Autofac's covariance and contravariance support. I noticed that Autofac's ContravariantRegistrationSource only supports generic interfaces with a single generic parameter that is marked with the in keyword. This seems to limit the usefulness of this feature, and I'm wondering if Autofac has other ways in