My factory class has a collection of classes, I don\'t want that dependency, when I add a subclass of SuperClass I need the factory file to stay unchanged
I have a big C++ project with an interface. I built a C++/CLI wrapper dll in order to communicate with the project.
I have a .net assembly that exposes a public class (named A) to be created other programs using reflection (Assembly.CreateInstance). For now, it works fine.
Problem description: I need to implement 2 classes like following: class A1 { common_method1(); common_method2();
Is there a way to write that I\'m expecting a certain exception for certain inputs when I use the Factory attribute?
I am using Loki SingletonHolder in combination with Loki Factory in my project. The following example basically consists of two开发者_如何学Python lines of code in the try-block to 1.) use the factory
What is a decent way to handle conditional sub-factories with a DI approach. The scenario is the loader object that gets injected in开发者_如何学JAVAto an entry is dependent on the settings of that en
I want to control the creation of a bunch of classes that all share a common interface and all need a bit of logic in the construction. Also, I don\'t want any other code than the class factory to be
I want to create a factory for generic classes in VB.NET and I am running into issues. What I have are two interfaces:
I need a object B, but i get a object A when i execute \'B.GetByID()\' public class A { public A() { } public static A GetSelf()