SharpConfig 1.4.0
SharpConfig is an easy-to-use CFG/INI configuration library for .NET.
Showing the top 20 packages that depend on SharpConfig.
Packages | Downloads |
---|---|
aliyun-net-sdk-core
Alibaba Cloud SDK for C#
|
16 |
aliyun-net-sdk-core
Alibaba Cloud SDK for C#
|
17 |
aliyun-net-sdk-core
Alibaba Cloud SDK for C#
|
18 |
aliyun-net-sdk-core
Alibaba Cloud SDK for C#
|
19 |
aliyun-net-sdk-core
Alibaba Cloud SDK for C#
|
20 |
aliyun-net-sdk-core
Alibaba Cloud SDK for .NET
|
19 |
=============================================
ChangeLog for SharpConfig 1.4.
Last version was 1.3.
Author: Cemalettin Dervis
PLEASE NOTE:
This release contains some significant API changes
and may break your existing API in terms of errors!
=============================================
1. General
-----------------------
- Added assemblies for .NET 3.0, 3.5 and 4.5.
- Improved API documentation.
- Added a sample application.
- Internalized some methods that shouldn't be public.
- Comment now allows empty values.
- Improved section parsing in terms of performance and stability.
- SharpConfig now accepts multiple sections and settings
that have the same name (issue #5).
- Changed array bracket symbols from [] to {}.
2. Fixes
-----------------------
- Fixed a bug in the parsing process ( Configuration.Parse() ) that
would not reset the temporary fields when the parsing failed.
- Fixed a potential memory leak in Configuration.(De)SerializeBinary().
3. API Changes
-----------------------
- Changed Configuration and Section to be collections themselves.
It's now possible to iterate through Configuration and Section objects
directly instead of accessing their properties such as "Section" and
"Settings".
- When a section is accessed used Configuration[string] and a section
with the specified name couldn't be found, the configuration will create
a new section, add it to itself and return that instead.
This eases the population of configurations.
Note: this functionality is also implemented in Section[string].
- New types:
- ConfigurationElement class
- Removed types:
- CommentCollection class
- SectionCollection class
- SettingCollection class
- ParseFlags enum.
Parsing options can now be set via static properties of the Configuration class.
- CommentType enum.
Replaced by a char, accessible via the Comment.Symbol property.
- New methods:
- Configuration.LoadFromText()
- Setting.SetValue<T>()
- Renamed methods:
- Configuration.Load(filename) -> Configuration.LoadFromFile()
- Configuration.Load(stream) -> Configuration.LoadFromStream()
- Added encoding overloads for Configuration.Load/Save methods (issue #1).
- Added new static properties to the Configuration class:
- NumberFormat (issue #3)
- IsCaseSensitive
- ValidCommentChars (issue #4)
- Changed the Comment struct to a class.
- Removed pre-comments.
- Changed the Configuration class to be non-sealed.
- Renamed the SettingCategory class to Section.
- Renamed the SettingCategoryCollection class to SectionCollection.
- Added a new property: Setting.ArraySize.
- Improved the Setting.GetValue methods.
You can now use GetValue() to obtain single and array objects.
GetValueArray() has been removed subsequently.
- Added a new method: Section.CreateObject<T>().
- Renamed Section.AssignTo<T>() to MapTo<T>().
- Improved MapTo<T>() and added an overload that specifies
a value for case-sensitive property assignment.
This package has no dependencies.
Version | Downloads | Last updated |
---|---|---|
3.2.9.1 | 20 | 05/29/2024 |
3.2.9 | 18 | 05/29/2024 |
3.2.8 | 21 | 05/29/2024 |
3.2.6.1 | 18 | 05/29/2024 |
3.2.6 | 18 | 05/29/2024 |
3.2.5 | 18 | 05/29/2024 |
3.2.4 | 18 | 05/29/2024 |
3.2.3 | 15 | 05/29/2024 |
3.2.1 | 16 | 05/29/2024 |
3.2.0 | 13 | 12/13/2024 |
3.1.0 | 18 | 05/29/2024 |
3.0.1 | 18 | 05/29/2024 |
3.0.0 | 18 | 05/29/2024 |
2.1.0 | 17 | 05/29/2024 |
2.0.1 | 17 | 05/29/2024 |
2.0.0 | 18 | 05/29/2024 |
1.5.6 | 18 | 05/29/2024 |
1.5.5 | 18 | 05/29/2024 |
1.5.4 | 19 | 05/29/2024 |
1.5.3 | 20 | 05/29/2024 |
1.5.2 | 18 | 05/29/2024 |
1.5.1 | 18 | 05/29/2024 |
1.5.0 | 21 | 05/29/2024 |
1.4.9 | 18 | 05/29/2024 |
1.4.8 | 17 | 05/29/2024 |
1.4.7 | 13 | 05/29/2024 |
1.4.6 | 20 | 05/29/2024 |
1.4.4 | 16 | 05/29/2024 |
1.4.3 | 15 | 05/29/2024 |
1.4.2 | 19 | 05/29/2024 |
1.4.1 | 16 | 05/29/2024 |
1.4.0 | 15 | 05/29/2024 |
1.3.0 | 19 | 05/29/2024 |
1.2.0 | 15 | 05/29/2024 |