Skip to content
This repository was archived by the owner on Nov 14, 2022. It is now read-only.

Commit ae4fcb5

Browse files
Update README.md
1 parent 9b74a5d commit ae4fcb5

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1-
# BinaryFormatter [![Build status](https://ci.appveyor.com/api/projects/status/pklx6d4i71i8lbu4?svg=true)](https://ci.appveyor.com/project/LukaszPyrzyk/binaryformatter)
2-
1+
# BinaryFormatter [![NuGet version](https://badge.fury.io/nu/BinaryFormatter.svg)](https://badge.fury.io/nu/BinaryFormatter)
32
BinaryFormatter is a byte serialized/deserializer for .NET Core, created for Distributed Cache Platform - [Kronos][kronos-url]. After few days of development, [Protobuf-Net][protobuf-net-url] (contract base serializer, fork of Google Protobuf) has announcement support for .NET Core.
43

4+
### Build status
5+
| Windows | Linux |
6+
|:-------:|:------:|
7+
| [![Build status](https://ci.appveyor.com/api/projects/status/pklx6d4i71i8lbu4?svg=true)](https://ci.appveyor.com/project/LukaszPyrzyk/binaryformatter) | [![Build Status](https://travis-ci.org/lukasz-pyrzyk/BinaryFormatter.svg?branch=master)](https://travis-ci.org/lukasz-pyrzyk/BinaryFormatter) |
8+
9+
10+
511
### Supported types
612
- char
713
- (s)byte
@@ -28,14 +34,14 @@ $ Install-Package BinaryFormatter
2834

2935
### Serialization
3036
```cs
31-
BinaryConverter converter = new BinaryConverter();
37+
var converter = new BinaryConverter();
3238
byte[] byteArray = converter.Serialize(model);
3339
```
3440

3541
### Deserialization
3642
```cs
37-
BinaryConverter converter = new BinaryConverter();
38-
TzpeViewModel obj = converter.Deserialize<TzpeViewModel>(byteArray);
43+
var converter = new BinaryConverter();
44+
ViewModel obj = converter.Deserialize<ViewModel>(byteArray);
3945
```
4046

4147
License

0 commit comments

Comments
 (0)