Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 698 Bytes

File metadata and controls

22 lines (16 loc) · 698 Bytes

DictionaryExtensions.Flatten method

Flattens a dictionary (concatenating the keys using the specified separator, or "." if none.

public static IEnumerable<KeyValuePair<object, object>> Flatten(
    this IEnumerable<KeyValuePair<object, object>> src, string parentKey = "", 
    string separator = ".")
parameter description
src Source Dictionary (as a IEnumerable)
parentKey Initial key
separator Keys separator (default: ".")

See Also