Files
FileFlowsPlugins/EmailNodes/ExtensionMethods.cs
2022-01-12 17:44:00 +13:00

17 lines
469 B
C#

namespace FileFlows.EmailNodes
{
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;
}
}
}