Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

DictionaryVariableSource Constructor

Create a new variable source from a list of paired string values.

[Visual Basic]
Public Overloads Sub New( _
   ParamArray args As String _
)
[C#]
DictionaryVariableSource(
   params string[] args
);

Parameters

args
the argument list containing pairs, or null

Remarks

The example below shows, how the dictionary is filled with { 'key1', 'value1' }, { 'key2', 'value2' } pairs:

new DictionaryVariableSource( new string[] { "key1", "value1", "key2", "value2" } )

See Also

DictionaryVariableSource Class | Spring.Objects.Factory.Config Namespace | DictionaryVariableSource Constructor Overload List