Skip to content

Commit

Permalink
Use spaces in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
xPaw committed Nov 6, 2023
1 parent 3a1cd51 commit ef5ad91
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ Console.WriteLine(data["some key"]);
```cs
public class SimpleObject
{
public string Name { get; set; }
public string Value { get; set; }
public string Name { get; set; }
public string Value { get; set; }
}

var stream = File.OpenRead("file.vdf"); // or any other Stream
Expand Down Expand Up @@ -72,23 +72,23 @@ Essentially the same text, just change `KeyValues1Text` to `KeyValues1Binary`.
```cs
class DataObject
{
public string Name { get; set; }
public string Name { get; set; }

public string Developer { get; set; }
public string Developer { get; set; }

[KVProperty("description")]
public string Summary { get; set; }
[KVProperty("description")]
public string Summary { get; set; }

[KVIgnore]
public string ExtraData { get; set; }
[KVIgnore]
public string ExtraData { get; set; }
}

var data = new DataObject
{
Developer = "Valve Software",
Name = "Dota 2",
Summary = "Dota 2 is a complex game.",
ExtraData = "This will not be serialized."
Developer = "Valve Software",
Name = "Dota 2",
Summary = "Dota 2 is a complex game.",
ExtraData = "This will not be serialized."
};

using var stream = File.OpenWrite("file.vdf");
Expand Down

0 comments on commit ef5ad91

Please sign in to comment.