Skip to content

Commit 56665ab

Browse files
committed
2 parents 509f415 + 84449e1 commit 56665ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ nanoFramework.MessagePack is a simple, lightweight [MsgPack.Light](https://githu
77
## Usage
88
### Serialization to bytes array:
99
```C#
10+
var value = new TestClass();
1011
var bytes = MessagePackSerializer.Serialize(value);
1112
```
1213
### Deserialization:
1314
```C#
14-
var result = (TestClass)MessagePackSerializer.Deserialize(typeof(TestClass), result);
15+
var result = (TestClass)MessagePackSerializer.Deserialize(typeof(TestClass), bytes);
1516
```
1617
### Your type serialization/deserialization:
1718
If you want to work with your own types, first thing you need - type converter.

0 commit comments

Comments
 (0)