namespace adas_core.Domain.Utils;
///
/// Provides static access to global application data and configuration values.
///
public static class GlobalData
{
public static Dictionary Data = new();
///
/// Adds or updates a key-value pair in the data store. If the key already exists, its value is replaced; otherwise, a new entry is created.
///
/// The key used to identify the data entry in the store.
/// The value to associate with the specified key.
public static void AddData(string key, object value)
{
var exists = Data.ContainsKey(key);
if (exists)
Data[key] = value;
else
Data.Add(key, value);
}
}