Sisk

Class

IniSection

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

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

C#
public sealed class IniSection : IDictionary<string, string[]>, ICollection<KeyValuePair<string, string[]>>, IEnumerable<KeyValuePair<string, string[]>>, IEnumerable, IEquatable<IniSection>

Inheritance #

object ← IniSection

Implements #

IDictionary<string, string[]>, ICollection<KeyValuePair<string, string[]>>, IEnumerable<KeyValuePair<string, string[]>>, IEnumerable, IEquatable<IniSection>

Inherited Members #

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors #

NameDescription
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 #

NameDescription
CountGets the number of properties in this INI section.
IsReadOnly
KeysGets all keys defined in this INI section, without duplicates.
NameGets the INI section name.
ValuesGets all values defined in this INI section.
this[string]Gets all values associated with the specified property name, performing an case-insensitive search.

Methods #

NameDescription
Add(string, string[])
Add(string, string?)Adds a new key-value pair to the INI section.
Add(KeyValuePair<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(object?)
Equals(IniSection?)
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(string)
Remove(KeyValuePair<string, string[]>)
TryGetValue(string, out string[])

Type to search the documentation and the API reference.