kinghajj / mini Goto Github PK
View Code? Open in Web Editor NEWA .NET library for reading, modifying, and writing INI files.
Home Page: http://github.com/kinghajj/mini/tree/master
License: GNU Lesser General Public License v2.1
A .NET library for reading, modifying, and writing INI files.
Home Page: http://github.com/kinghajj/mini/tree/master
License: GNU Lesser General Public License v2.1
Example:
ConnectionString=host=example.com;username=example;password=example
Result:
Key: ConnectionString=host=example.com;username=example;password=example
Value: example
Should Be:
Key: ConnectionString
Value: host=example.com;username=example;password=example
I don't think the readme and license files should be forcibly added to a consumer's project when they use this package. If a consumer deletes these files from their project they will get re-added every time they upgrade the Mini package.
To prevent this, the Build Action for README.txt and LICENSE.txt should be set to None instead of Content. They should still be added to the NuGet package.
Example:
The ini files contains the following entry.
[5]
21=Timeout =
22=Timeout =
Im reading the inifile with
var iniTarget = new IniDocument("file", System.Text.Encoding.Unicode);
After writing the ini file back to file the spaces between the second equal character is lost
iniTarget.Write("file");
Result:
[5]
21=Timeout=
22=Timeout=
If a key contains trailing whitespace its value will return an empty string. For example:
[Section]
; Works correctly
FirstKey=FirstValue
; Works correctly (leading whitespace on value)
SecondKey= SecondValue
; Doesn't work (trailing whitespace on key)
ThirdKey =ThirdValue
; Doesn't work (trailing whitespace on key, leading whitespace on value)
FourthKey = FourthValue
; Works correctly (leading whitespace on key)
FifthKey=FifthValue
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.