INI configuration parser and writer for .NET with rich features like comments, arrays, and type conversion support.
- Flexible comment support
- Pre-section/property comments
- Inline comments
- Multiple comment prefix characters (
;
,#
)
- Section and property management
- Array values with type conversion
- Case-insensitive key lookup
- Section merging with configurable policies
- Built-in Windows Forms editor
- Visual INI file editing
- Comment management interface
- Direct property manipulation
- Real-time preview
MarronConfig includes a Windows Forms-based editor for visual INI file management. Features:
- List view for sections and properties
- Comment editing interface
- Property value editor
- File save/load functionality
// Create document
var doc = new Document();
// Add section with comments
var section = new Section("Database");
section.PreComments.Add(new Comment("Database configuration"));
section.Comment = new Comment("Main database settings");
doc.AddSection(section);
// Add property with comments
var prop = new Property("ConnectionString", "Server=localhost;");
prop.PreComments.Add(new Comment("Connection string for database"));
prop.Comment = new Comment("Local development server");
section.AddProperty(prop);