mirror of
https://github.com/claunia/plist-cil.git
synced 2025-12-16 19:14:26 +00:00
Enable syntax highlighting for code snippets
This commit is contained in:
committed by
GitHub
parent
7f98f27448
commit
e16fd79e30
@@ -71,6 +71,7 @@ For converting a file into another format there exist convenience methods in the
|
||||
|
||||
### Reading
|
||||
|
||||
```csharp
|
||||
try
|
||||
{
|
||||
FileInfo file = new FileInfo("Info.plist");
|
||||
@@ -112,9 +113,11 @@ For converting a file into another format there exist convenience methods in the
|
||||
{
|
||||
Console.WriteLine(ex.StackTrace);
|
||||
}
|
||||
```
|
||||
|
||||
### Writing
|
||||
|
||||
```csharp
|
||||
// Creating the root object
|
||||
NSDictionary root = new NSDictionary();
|
||||
|
||||
@@ -146,3 +149,4 @@ For converting a file into another format there exist convenience methods in the
|
||||
|
||||
// Save the property list
|
||||
PropertyListParser.SaveAsXml(root, new FileInfo("people.plist"));
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user