silently be more generically usable

This commit is contained in:
Michael Becker 2021-02-06 22:42:49 -05:00
parent 3d961c6691
commit 2c9d62ac37
No known key found for this signature in database
GPG Key ID: 98C333A81F18C22C

View File

@ -11,7 +11,7 @@ namespace MBS.Framework
if (value.Length == 1) return value.ToUpper();
return value[0].ToString().ToUpper() + value.Substring(1);
}
public static string ReplaceVariables(this string value, Dictionary<string, object> dict)
public static string ReplaceVariables(this string value, IEnumerable<KeyValuePair<string, object>> dict)
{
string retval = value;
foreach (KeyValuePair<string, object> kvp in dict)