Click or drag to resize
DictionaryExtrasDictToListOfListViewItems Method (DictionaryString, ListString)
Convert a dictionary of key/value to a list of listviewitems

Namespace: ANDREICSLIB.ClassExtras
Assembly: ANDREICSLIB (in ANDREICSLIB.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static List<ListViewItem> DictToListOfListViewItems(
	this Dictionary<string, List<string>> origDict
)

Parameters

origDict
Type: System.Collections.GenericDictionaryString, ListString
Input Dictionary, string as the key for the text/name, and a list of strings in the value, for subitems

Return Value

Type: ListListViewItem
a list of listviewitems made from a dictionary

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DictionaryString, ListString. 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).
See Also