-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathIni.cs
More file actions
34 lines (22 loc) · 761 Bytes
/
Ini.cs
File metadata and controls
34 lines (22 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System;
namespace Gsemac.Text.Ini {
public class Ini :
IniBase {
// Public members
public override IIniSection Global => global;
public override IIniSectionCollection Sections => sections;
public Ini() :
this(IniOptions.Default) {
}
public Ini(IIniOptions options) :
base(options) {
if (options is null)
throw new ArgumentNullException(nameof(options));
global = new IniSection(options.KeyComparer);
sections = new IniSectionCollection(options.KeyComparer);
}
// Private members
private readonly IIniSection global;
private readonly IIniSectionCollection sections;
}
}