Nam Pham

Nam Pham

  • NA
  • 222
  • 702

Global objects container

Nov 30 2021 4:12 AM

In my winforms application, when application start, I want to create number of instances of number of classes then config object parameter and do test connection to hardwares. Then in the whole application I want to acess created instances. Can you suggest me a pattern or something thing that can hold the instances. The Singleton pattern does not meet my require because I want to create two instances of a class. My current implement is create a static Global class. In the class I will define instances of classes and a Config method that will config instances.