mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2025-12-30 13:09:59 -06:00
18 lines
477 B
C#
18 lines
477 B
C#
namespace FileFlows.AudioNodes
|
|
{
|
|
internal static class ExtensionMethods
|
|
{
|
|
public static void AddOrUpdate(this Dictionary<string, object> dict, string key, object value)
|
|
{
|
|
if (dict.ContainsKey(key))
|
|
dict[key] = value;
|
|
else
|
|
dict.Add(key, value);
|
|
}
|
|
public static string? EmptyAsNull(this string str)
|
|
{
|
|
return str == string.Empty ? null : str;
|
|
}
|
|
}
|
|
}
|