What is the correct term for describing a type, which can be either an interface or an abstract, but not a specific type?
This question arises as a result of connecting StructureMap as an IDependencyResolver for MVC4. I did a little refactoring and created this:
public object GetService(Type serviceType) { if (serviceType.IsAbstract || serviceType.IsInterface) { return GetNonConcreteService(serviceType); } return GetConcreteService(serviceType); } private object GetConcreteService(Type serviceType) { return _container.GetInstance(serviceType); } private object GetNonConcreteService(Type serviceType) { return _container.TryGetInstance(serviceType); }
Obviously, GetNonConcreteService is a bad method name, which made me wonder if the same exact but better term would be.
source share