PropertyConfig.dll
1.1.0
See the version list below for details.
dotnet add package PropertyConfig.dll --version 1.1.0
NuGet\Install-Package PropertyConfig.dll -Version 1.1.0
<PackageReference Include="PropertyConfig.dll" Version="1.1.0" />
paket add PropertyConfig.dll --version 1.1.0
#r "nuget: PropertyConfig.dll, 1.1.0"
// Install PropertyConfig.dll as a Cake Addin #addin nuget:?package=PropertyConfig.dll&version=1.1.0 // Install PropertyConfig.dll as a Cake Tool #tool nuget:?package=PropertyConfig.dll&version=1.1.0
PropertyConfig
Description
This library is developed to provide similar functionality to Java's java.util.Properties
class. It allows for the flat storing of name-value pairs in XML.
Usage
Get the library from Nuget by using your package manager or by running;
Install-Package PropertyConfig.dll
Add the directive to your class file:
using PropertyConfig;
Instantiate the class (preferrably in the main entry class and storing it in a static variable)
public static Configuration configuration = new Configuration();
Add whatever properties necessary, for example
configuration["Hello"] = "World";
//or
configuration.Add("Hello", "World");
After including every property, save the configuration
configuration.StoreToXml(); //saves to the default 'config.xml'
//or
configuration.StoreToXml(/*path to custom xml file*/); //saves to specified xml file
//or
configuration.StoreToXml(/*path to custom xml file*/, /*comment to add to config files*/);
this produces an output that looks like
<config>
<Hello>World</Hello>
</config>
To load a config file
configuration.LoadFromXml() //loads from default 'config.xml'
//or
configuration.LoadFromXml(/*path to custom xml file*/); //saves to specified xml file
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net40 is compatible. net403 was computed. net45 is compatible. net451 was computed. net452 was computed. net46 is compatible. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
Universal Windows Platform | uap was computed. uap10.0 was computed. |
Windows Store | netcore is compatible. netcore45 was computed. netcore451 was computed. |
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Fixes a fatal flaw that made the library basically unusable