IniFile.SectionToDictionary Method

IniFileIO

IniFileSectionToDictionary Method

IniFileIO Documentation
Returns a dictionary lookup for the provided section's Keys.

This method does not support multiple IniFileKey with the same Name value. An exception is thrown when this is attempted.

Namespace:  IniFileIO
Assembly:  IniFileIO (in IniFileIO.dll) Version: 1.4.0.6028 (1.4.0.06028)
Syntax

public static Dictionary<string, string> SectionToDictionary(
	IniFileSection section
)
Public Shared Function SectionToDictionary ( 
	section As IniFileSection
) As Dictionary(Of String, String)
public:
static Dictionary<String^, String^>^ SectionToDictionary(
	IniFileSection section
)
static member SectionToDictionary : 
        section : IniFileSection -> Dictionary<string, string> 

Parameters

section
Type: IniFileIOIniFileSection
Section to build to the dictionary from.

Return Value

Type: DictionaryString, String
Dictionary with each Keys' Name as the Key and Value as the Value.
Exceptions

ExceptionCondition
ArgumentExceptionThrown when a duplicate key is attempted to be added to the dictionary.
See Also

Reference