rama creada apartir de master en j

This commit is contained in:
jrojas
2026-06-26 10:29:23 +02:00
parent 319fd3dfb0
commit c1517fda87
2810 changed files with 1927392 additions and 25392 deletions
+15 -7
View File
@@ -1,15 +1,23 @@
namespace adas_core.Domain.Utils;
/// <summary>
/// Provides static access to global application data and configuration values.
/// </summary>
public static class GlobalData
{
public static Dictionary<string, object> Data = new();
/// <summary>
/// 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.
/// </summary>
/// <param name="key">The key used to identify the data entry in the store.</param>
/// <param name="value">The value to associate with the specified key.</param>
public static void AddData(string key, object value)
{
var exists = Data.ContainsKey(key);
if (exists)
Data[key] = value;
else
Data.Add(key, value);
}
{
var exists = Data.ContainsKey(key);
if (exists)
Data[key] = value;
else
Data.Add(key, value);
}
}