|
|
|
|
@ -38,6 +38,16 @@ namespace ICSharpCode.Core
@@ -38,6 +38,16 @@ namespace ICSharpCode.Core
|
|
|
|
|
return dict; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Escapes all occurrences of '${' to '${$}{'.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static string Escape(string input) |
|
|
|
|
{ |
|
|
|
|
if (input == null) |
|
|
|
|
throw new ArgumentNullException("input"); |
|
|
|
|
return input.Replace("${", "${$}{"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Expands ${xyz} style property values.
|
|
|
|
|
/// </summary>
|
|
|
|
|
@ -153,6 +163,8 @@ namespace ICSharpCode.Core
@@ -153,6 +163,8 @@ namespace ICSharpCode.Core
|
|
|
|
|
{ |
|
|
|
|
if (propertyName == null) |
|
|
|
|
throw new ArgumentNullException("propertyName"); |
|
|
|
|
if (propertyName == "$") |
|
|
|
|
return "$"; |
|
|
|
|
|
|
|
|
|
if (customTags != null) { |
|
|
|
|
foreach (StringTagPair pair in customTags) { |
|
|
|
|
|