NVelocity.Runtime.Parser.Node.ASTStringLiteral.InterpolateDictionaryString C# (CSharp) Метод

InterpolateDictionaryString() приватный Метод

Interpolates the dictionary string. dictionary string is any string in the format "%{ key='value' [,key2='value2' }" "%{ key='value' [,key2='value2'] }"
private InterpolateDictionaryString ( string str, IInternalContextAdapter context ) : HybridDictionary
str string If valid input a HybridDictionary with zero or more items, /// otherwise the input string
context IInternalContextAdapter NVelocity runtime context
Результат System.Collections.Specialized.HybridDictionary
		private HybridDictionary InterpolateDictionaryString(string str, IInternalContextAdapter context)
		{
			HybridDictionary hash = new HybridDictionary(true);

			// key=val, key='val', key=$val, key=${val}, key='id$id'

			char[] contents = str.ToCharArray();
			int lastIndex;

			return RecursiveBuildDictionary(contents, 2, context, out lastIndex);
		}