factory
Java: Factory method with reflection?
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[详细]
2023-03-30 21:02 分类:问答"Attempted to read or write protected memory" error when passing a native object from C++/CLI wrapper dll
I have a big C++ project with an interface. I built a C++/CLI wrapper dll in order to communicate with the project.[详细]
2023-03-28 09:48 分类:问答Decide class of object to be created from another assembly
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.[详细]
2023-03-27 20:42 分类:问答OOP C++: Which pattern: 2 classes with the partly same methods
Problem description: I need to implement 2 classes like following: class A1 { common_method1(); common_method2();[详细]
2023-03-24 15:48 分类:问答Mbunit Factory attribute with ExpectedException
Is there a way to write that I\'m expecting a certain exception for certain inputs when I use the Factory attribute?[详细]
2023-03-24 03:30 分类:问答Loki Factory-Singleton throws "dead reference detected" in try-catch-block on ARM
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[详细]
2023-03-23 07:41 分类:问答Dependency Injection and Factories
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[详细]
2023-03-23 03:30 分类:问答c# generics class factory question
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[详细]
2023-03-22 08:56 分类:问答Factory method for generics in VB.NET
I want to create a factory for generic classes in VB.NET and I am running into issues. What I have are two interfaces:[详细]
2023-03-21 09:24 分类:问答How do i use the same factory method for a subclass?
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()[详细]
2023-03-20 19:42 分类:问答
加载中,请稍侯......