✅ Need persistent Dictionary that can be used between classes.
Hello!
I have a main class that fetches data from two other classes (Calcs and Plans).
The plan is to have a "premade" Dictionary that has its values (but not keys) changed by both Calcs and Plans, be used in the main class. What's the most efficient way of doing this? Should I create the Dictionary in the main constructor? I'm not sure how to go about it.
Thanks!
4 Replies
ConcurrentDictionary Class (System.Collections.Concurrent)
Represents a thread-safe collection of key/value pairs that can be accessed by multiple threads concurrently.
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.much appreciated!!
Closed!