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#
|
2 |
aliyun-net-sdk-core
Alibaba Cloud SDK for C#
|
1 |
aliyun-net-sdk-core
Alibaba Cloud SDK for .NET
|
1 |
=============================================
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 | 2 | 2025/6/7 |
3.2.9 | 1 | 2025/6/8 |
3.2.8 | 0 | 2018/4/9 |
3.2.6.1 | 0 | 2018/3/8 |
3.2.6 | 1 | 2025/6/8 |
3.2.5 | 1 | 2025/5/26 |
3.2.4 | 0 | 2017/12/11 |
3.2.3 | 0 | 2017/12/7 |
3.2.1 | 0 | 2017/12/6 |
3.2.0 | 0 | 2017/7/7 |
3.1.0 | 0 | 2017/3/31 |
3.0.1 | 0 | 2016/12/5 |
3.0.0 | 0 | 2016/12/4 |
2.1.0 | 0 | 2016/11/7 |
2.0.1 | 1 | 2025/6/8 |
2.0.0 | 0 | 2016/8/21 |
1.5.6 | 0 | 2016/7/12 |
1.5.5 | 0 | 2016/6/1 |
1.5.4 | 0 | 2016/4/21 |
1.5.3 | 0 | 2016/4/11 |
1.5.2 | 0 | 2016/3/22 |
1.5.1 | 0 | 2016/3/4 |
1.5.0 | 0 | 2016/3/3 |
1.4.9 | 0 | 2015/12/16 |
1.4.8 | 0 | 2015/12/4 |
1.4.7 | 1 | 2025/6/8 |
1.4.6 | 0 | 2015/11/29 |
1.4.4 | 0 | 2015/8/28 |
1.4.3 | 0 | 2015/3/31 |
1.4.2 | 1 | 2025/6/8 |
1.4.1 | 1 | 2025/6/8 |
1.4.0 | 2 | 2025/5/24 |
1.3.0 | 0 | 2013/10/30 |
1.2.0 | 0 | 2013/10/29 |