 | NameValueCollectionExtensionsToParameterDictionary Method |
Convert the collection of key value pairs into a proper dictionary
Namespace: SanteDBAssembly: SanteDB.Core.Model (in SanteDB.Core.Model.dll) Version: 3.0.2081-alpha+0a330d5f5a5d3cb3e6e945ef530e94ac5671b49c
Syntaxpublic static IDictionary<string, string[]> ToParameterDictionary(
this IEnumerable<KeyValuePair<string, string[]>> me
)
<ExtensionAttribute>
Public Shared Function ToParameterDictionary (
me As IEnumerable(Of KeyValuePair(Of String, String()))
) As IDictionary(Of String, String())
public:
[ExtensionAttribute]
static IDictionary<String^, array<String^>^>^ ToParameterDictionary(
IEnumerable<KeyValuePair<String^, array<String^>^>>^ me
)
[<ExtensionAttribute>]
static member ToParameterDictionary :
me : IEnumerable<KeyValuePair<string, string[]>> -> IDictionary<string, string[]> Parameters
- me IEnumerableKeyValuePairString, String
- The dictionary to convert
Return Value
IDictionaryString,
StringThe converted dictionary
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerableKeyValuePairString,
String. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
RemarksIn OpenIZ (SanteDB 1.0) there were mixed use of dictionaries, collections and
NameValueCollection this is a helper method to correct
duplicate keys in some of these collections.
See Also