GlobalStore class

Thread‑safe, case‑insensitive global key/value store for reference‑type objects.

public static class GlobalStore

Public Members

name description
static Count { get; } Gets the number of key/value pairs in the shared state.
static Keys { get; } Gets an enumerable collection of all keys in the shared state.
static Values { get; } Gets an enumerable collection of all values in the shared state.
static Clear() Clears all entries in the shared state.
static Contains(…) Checks if a variable with the specified name exists in the shared state.
static Get(…) Untyped fetch; null if absent.
static KeySnapshot() Snapshot of keys only—handy for quick listings.
static Remove(…) Attempts to remove the value with the specified name from the shared state.
static Set(…) Add or overwrite a value (reference‑types only).
static Snapshot() Snapshot of all current variables (shallow copy).
static TryGet<T>(…) Strongly‑typed fetch. Returns false if the key is missing or the stored value can’t be cast to T.

See Also