animetrics/PlistCS
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
master
Could not load branches
Nothing to show
Could not load tags
Nothing to show
{{ refName }}
default
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
-
Clone
Use Git or checkout with SVN using the web URL.
Work fast with our official CLI. Learn more about the CLI.
- Open with GitHub Desktop
- Download ZIP
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
-----------------
DESCRIPTION
-----------------
This is a C# Property List (plist) serialization library (MIT license).
It supports both XML and binary versions of the plist format.
plist C#
__________________________________________________________________________________
string string
integer short, int, long
real double
dictionary Dictionary<string, object>
array List<object>
date DateTime
data List<byte>
boolean bool
-----------------
USAGE
-----------------
See PlistCS/PlistCS/plistTests.cs for examples of reading and
writing all types to both XML and binary. E.g. to read a plist from disk whose
root node is a dictionary:
Dictionary<string, object> dict = (Dictionary<string, object>)Plist.readPlist("testBin.plist");
The plist format (binary or XML) is automatically detected so call the same
readPlist method for XML
Dictionary<string, object> dict = (Dictionary<string, object>)Plist.readPlist("testXml.plist");
To write a plist, e.g. dictionary
Dictionary<string, object> dict = new Dictionary<string, object>
{
{"String Example", "Hello There"},
{"Integer Example", 1234}
};
Plist.writeXml(dict, "xmlTarget.plist");
and for a binary plist
Dictionary<string, object> dict = new Dictionary<string, object>
{
{"String Example", "Hello There"},
{"Integer Example", 1234}
};
Plist.writeBinary(dict, "xmlTarget.plist");
The other public methods allow for reading and writing from streams and byte
arrays. Again, see the test suite code PlistCS/PlistCS/plistTests.cs
for comprehensive examples.
---------------
AUTHOR
---------------
Mark Tilton, Animetrics Inc.About
A C# Property List (plist) serialization library.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published