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 ... - 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 ...
- Habanero - An Enterprise Application Framework for .Net that produces an agile application ...
- Licenser - A Software license package - A package used by the software developers for licensing their products.
The ... - 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 ...
- 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 ...
- 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 ...
- 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 ...