This commit is contained in:
2022-06-09 17:19:51 +03:00
parent 781bb489bd
commit 97888626b6
3 changed files with 4 additions and 5 deletions

View File

@@ -78,9 +78,8 @@ namespace PluginManager
appConfig = new() { ApplicationVariables = new Dictionary<string, object>(), ProtectedKeyWords = new List<string>() };
}
public static string? GetKey(string value) => appConfig.ApplicationVariables.Keys.FirstOrDefault(x => appConfig.ApplicationVariables[x] == value);
public static bool ContainsValue(string value) => appConfig.ApplicationVariables.ContainsValue(value);
public static bool ContainsKey(string key) => appConfig.ApplicationVariables.ContainsKey(key);
public static bool ContainsValue<T>(T value) => appConfig.ApplicationVariables.ContainsValue(value!);
public static bool ContainsKey(string key) => appConfig.ApplicationVariables.ContainsKey(key);
public static Dictionary<string, object> GetAllVariables() => new(appConfig.ApplicationVariables);
}