IniFileToDictionary Method |
IniFileIO Documentation |
Returns a dictionary lookup by Name for the currently loaded IniFileSections.
The inner dictionary lookup is by Name for each IniFileSection's Keys.
This method does not support multiple IniFileSections with the same Name value nor does it support a single IniFileSection which has multiple IniFileKeys with the same Name value. An exception is thrown when this is encountered.
Namespace: IniFileIO
Assembly: IniFileIO (in IniFileIO.dll) Version: 1.4.0.6028 (1.4.0.06028)
Syntax
public Dictionary<string, Dictionary<string, string>> ToDictionary()
Public Function ToDictionary As Dictionary(Of String, Dictionary(Of String, String))
public: Dictionary<String^, Dictionary<String^, String^>^>^ ToDictionary()
member ToDictionary : unit -> Dictionary<string, Dictionary<string, string>>
Return Value
Type: DictionaryString, DictionaryString, StringA dictionary lookup with each IniFileSection's Name as the Key and SectionToDictionary(IniFileSection) as the Value.
Exceptions
Exception | Condition |
---|---|
ArgumentException | Thrown when a duplicate key is attempted to be added to the dictionary. |
See Also