public static object?GetImplementation(Type baseType, Type wrapperType, params object[] args) => StaticDI.GetImplementation(baseType, wrapperType, args);
public static object?GetImplementation(Type baseType, params object[] args) { return(StaticDI.GetImplementation(baseType, args)); }
/// <summary> /// Searches for interfaces that implements the <TBase> interface. /// Basically, the <TBase> interface is only a marker. /// This way if I declare IModLibSettingsContainer it will be ensured that only one implementation /// of the interface will be returned /// </summary> public static IEnumerable <TBase> GetBaseImplementations <TBase>(params object[] args) where TBase : class, IDependencyBase => StaticDI.GetBaseImplementations <TBase>(args);
public static IEnumerable <TBase> GetBaseImplementations <TBase, TWrapper>(params object[] args) where TBase : class, IDependencyBase where TWrapper : TBase, IWrapper { return(StaticDI.GetBaseImplementations <TBase, TWrapper>(args)); }