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.
- 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(string, string?)
Adds a new key-value pair to the INI section.
- 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.
- 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.