Table of Contents

Class DictionaryUtils

Namespace
C4.Net.Core.Util
Assembly
C4.Net.Core.dll

Creates dictionaries from simple name=value string pairs.

public class DictionaryUtils
Inheritance
DictionaryUtils
Inherited Members

Methods

Create(params string[])

Builds a dictionary from strings formatted as name=value.

public static Dictionary<string, string> Create(params string[] nameValuePairs)

Parameters

nameValuePairs string[]

The pairs to parse.

Returns

Dictionary<string, string>

A dictionary containing the parsed keys and values.

Remarks

Entries without exactly one = separator are ignored.