Ejemplo n.º 1
0
 public static object?GetImplementation(Type baseType, Type wrapperType, params object[] args) =>
 StaticDI.GetImplementation(baseType, wrapperType, args);
Ejemplo n.º 2
0
 public static object?GetImplementation(Type baseType, params object[] args)
 {
     return(StaticDI.GetImplementation(baseType, args));
 }
Ejemplo n.º 3
0
 /// <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);
Ejemplo n.º 4
0
 public static IEnumerable <TBase> GetBaseImplementations <TBase, TWrapper>(params object[] args)
     where TBase : class, IDependencyBase
     where TWrapper : TBase, IWrapper
 {
     return(StaticDI.GetBaseImplementations <TBase, TWrapper>(args));
 }