Table of Contents

Class IniSection

Namespace
Sisk.IniConfiguration.Core
Assembly
Sisk.IniConfiguration.Core.dll

Represents an INI section, which contains it's own properties.

public sealed class IniSection : IDictionary<string, string[]>, ICollection<KeyValuePair<string, string[]>>, IEnumerable<KeyValuePair<string, string[]>>, IEnumerable, IEquatable<IniSection>
Inheritance
IniSection
Implements
Inherited Members

Constructors

IniSection(string)

Initializes a new instance of the IniSection class with the specified name.

IniSection(string, IEnumerable<KeyValuePair<string, string>>)

Initializes a new instance of the IniSection class with the specified name and items.

Properties

Count

Gets the number of properties in this INI section.

IsReadOnly
this[string]

Gets all values associated with the specified property name, performing an case-insensitive search.

Keys

Gets all keys defined in this INI section, without duplicates.

Name

Gets the INI section name.

Values

Gets all values defined in this INI section.

Methods

Add(KeyValuePair<string, string[]>)
Add(string, string?)

Adds a new key-value pair to the INI section.

Add(string, string[])
Clear()
Contains(KeyValuePair<string, string[]>)
ContainsKey(string)

Gets an boolean indicating if the specified key/property name is defined in this IniSection.

CopyTo(KeyValuePair<string, string[]>[], int)

This method is not supported and will throw an NotSupportedException.

Equals(IniSection?)
Equals(object?)
GetEnumerator()
GetHashCode()
GetMany(string)

Gets all values defined in this INI section by their property name.

GetOne(string)

Gets the last value defined in this INI section by their property name.

Remove(KeyValuePair<string, string[]>)
Remove(string)
TryGetValue(string, out string[])