Class
IniSection
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 #
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 #
| Name | Description |
|---|---|
| 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 #
| Name | Description |
|---|---|
| Count | Gets the number of properties in this INI section. |
| IsReadOnly | |
| 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. |
| this[string] | Gets all values associated with the specified property name, performing an case-insensitive search. |
Methods #
| Name | Description |
|---|---|
| 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[]) |