diff --git a/CSharp/Libraries/UniversalEditor.Core/Common/Strings.cs b/CSharp/Libraries/UniversalEditor.Core/Common/Strings.cs index f4b63534..2a7778f3 100644 --- a/CSharp/Libraries/UniversalEditor.Core/Common/Strings.cs +++ b/CSharp/Libraries/UniversalEditor.Core/Common/Strings.cs @@ -5,7 +5,16 @@ namespace UniversalEditor.Common { public static class Strings { - public static string ReplaceVariables(string value, Dictionary variables) + /// + /// Replaces a collection of named variables in a given string. + /// + /// The string in which to replace variables. + /// A containing name-value pairs of variables to replace. + /// + /// A with all instances of variables with the given name in $(VariableName) replaced + /// with the associated value. + /// + public static string ReplaceVariables(this string value, Dictionary variables) { string retval = value; foreach (string key in variables.Keys)