Skip to content

Commit

Permalink
added code example to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rofr committed Mar 10, 2014
1 parent 8a0559e commit 1908ebb
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,15 @@ See more about OrigoDB on the project page: http://devrexlabs.github.io/
* Operates on instance fields unless marked with `NonSerializedAttribute`
* Includes inherited fields
* Includes compiler generated fields
* Writes unformatted Json (no indentation) or Bson, your choice
* Writes unformatted Json (no indentation)

## Usage

```csharp
IFormatter formatter = new JsonNetFormatter();
MemoryStream ms = new MemoryStream(); // or any other kind of stream...
formatter.Serialize(ms, someObjectRef);
ms.Position = 0;
object clone = formatter.Deserialize(ms);
```

0 comments on commit 1908ebb

Please sign in to comment.