V
V
Vladimir Korotenko2021-04-12 15:33:28
C++ / C#
Vladimir Korotenko, 2021-04-12 15:33:28

What is the name of such a structure?

There is a class, I want to add a static field with a dictionary of POCO objects, because of the rather complex code, I don’t want to make it a singleton. How to actually call this cadavre?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vasily Bannikov, 2021-04-12
@firedragon

Can you call it a cache?
In general, I don’t see any problems in making it an instance - you just need to pass it to the constructors of all classes that depend on it.

A
Adamos, 2021-04-12
@Adamos

NonSingletonCauseMyCodeWasTooComplicatedDictionary

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question