Enable syntax highlighting for code snippets

This commit is contained in:
Ruben Schmidmeister
2020-08-12 15:20:02 +02:00
committed by GitHub
parent 7f98f27448
commit e16fd79e30

View File

@@ -71,6 +71,7 @@ For converting a file into another format there exist convenience methods in the
### Reading ### Reading
```csharp
try try
{ {
FileInfo file = new FileInfo("Info.plist"); 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); Console.WriteLine(ex.StackTrace);
} }
```
### Writing ### Writing
```csharp
// Creating the root object // Creating the root object
NSDictionary root = new NSDictionary(); 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 // Save the property list
PropertyListParser.SaveAsXml(root, new FileInfo("people.plist")); PropertyListParser.SaveAsXml(root, new FileInfo("people.plist"));
```