DictionaryExtrasDictToListOfListViewItems Method (DictionaryString, ListString) |
Convert a dictionary of key/value to a list of listviewitems
Namespace: ANDREICSLIB.ClassExtrasAssembly: ANDREICSLIB (in ANDREICSLIB.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static List<ListViewItem> DictToListOfListViewItems(
this Dictionary<string, List<string>> origDict
)
<ExtensionAttribute>
Public Shared Function DictToListOfListViewItems (
origDict As Dictionary(Of String, List(Of String))
) As List(Of ListViewItem)
public:
[ExtensionAttribute]
static List<ListViewItem^>^ DictToListOfListViewItems(
Dictionary<String^, List<String^>^>^ origDict
)
[<ExtensionAttribute>]
static member DictToListOfListViewItems :
origDict : Dictionary<string, List<string>> -> List<ListViewItem>
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:
ListListViewItema 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