EasyConfig
EasyConfig is a simple configuration file parsing library created by Nick Gravelyn (http://www.nickontech.com/).
EasyConfig supports files that follow the following format:
[GroupName]
name = value #comment
#comment
Configuration files consist of one or more groups designated by using the [] brackets with a name inside. Each group consists of one or more settings. A setting is set up as a name and a value separated by an equals sign (=).
Setting values can be integers, floating point numbers, booleans, or strings. Strings are designated with quotes like the following:
aStringSetting = "SomeString"
Booleans can be set using any of the following: on, off, true, false, yes, no. Booleans are also not case sensitive so the following works:
aBoolSetting = yEs
Settings can also be arrays which are defined simply by using a comma-separated list of values of the same type. You could make an array of booleans like so:
aBoolArray = no, yes, false, true, on, off, off
You can also place comments in your configuration files using the pound sign (#). Any contents of a line following a pound sign (#) will be ignored by the parser.
EasyConfig parses these files and converts all the groups and settings into easy to navigate classes for easy access to these properties in your application without you having to manually parse the files. The following is a sample of how to parse a window size for an XNA game:
(The configuration file:)
[Video]
Width = 1280
Height = 720
(The code:)
graphics.PreferredBackBufferWidth = config.SettingGroups["Video"].Settings["Width"].GetValueAsInt();
graphics.PreferredBackBufferHeight = config.SettingGroups["Video"].Settings["Height"].GetValueAsInt();
graphics.ApplyChanges();
Go to http://www.codeplex.com/easyconfig
See also these related projects.
- .netlib - A library of useful extensions to the .NET library.
Goals
Each c ... - BraneCloud Evolution - Industrial-Strength Evolutionary Computation framework for C# .NET 4.0. This is ...
- C# Studio - C# Studio is a simple IDE for a C#/Mono/GTK# developer. It has a standard " ...
- Crack.NET - A runtime debugging ...
- DejaVu - Reusable library that can equip any action in your application with the Undo/Red ...
- Extension Overflow - he purpose with thi ...
- GAC Browser and Remover - Fast and easy to use utility for .NET assembly search and remove multiple assemb ...
- Habanero - An Enterprise Application Framework for .Net that produces an agile application ...
- JavApi Common Collections - JavApi Common Collections is a JavApi base .net collection framework, ported for ...
- Licenser - A Software license package - A package used by the software developers for licensing their products.
The ... - Mirror - Mirror is a simple mocking framework for .NET, still in very early development. ...
- Mono-Project - Mono provides the necessary software to develop and run .NET client and server a ...
- MonoDevelop - MonoDevelop is a free GNOME IDE primarily designed for C# and other .NET languag ...
- NArrange - NArrange is a stand-alone, configurable .NET code beautification tool that autom ...
- NClass - NClass is a free tool to easily create UML class diagrams with full C# and Java ...
- NFileStorage -
NFileStorage is a project (100% managed C# code) that enables software develo ...
- Nini - Nini is a powerful .NET configuration library designed to help build highly conf ...
- nQuant .net Color Quantizer - nQuant is a .net color quantizer that produces high quality 256 color 8 bit PNG ...
- ObjectListView - NEED TO FILE UNDER "Graphical User Interface" CATEGORY A powerful list ...
- Password Generator - Easy password generator.
- Password Generator - Easy password generator.
100% .net 2.0 C# managed library
Fully customis ...
- Password Generator - Easy password generator.
100% .net 2.0 C# managed library
Fully customis ...
- Portable.NET - he goal of DotGNU Portable.NET is to build a suite of Free Software toolsto comp ...
- RequestReduce - RequestReduce is a .Net Library and HttpModule providing automatic CSS backgroun ...
- Sea Turtle Batch Image Processor - This is a tool to add watermark (image or text) to existing images at designated ...
- SharpDevelop - #develop (short for SharpDevelop) is a free IDE for C#, VB.NET and Boo projects ...
- SharpSLT - SharpSLT is a little tool that helps developing multilingual applications. It sy ...
- SixPack Library - The SixPack library is a high performance, enterprise grade class library aimed ...
- StructureMap - StructureMap is a Dependency Injection / Inversion of Control tool for .Net that ...
- White: Automate windows applications - White supports all rich client applications, which are Win32, WinForm, WPF and S ...
- XsltDb - XsltDb DotNetNuke Module is a powerful XSLT-based developers-oriented module. Ac ...