Skip to content

cskardon/PackStream.NET

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#PackStream.NET

Alpha

cskardon MyGet Build Status

What???

PackStream.NET is a .NET implementation of the PackStream protocol devised by Neo4j. This is intended to be used with a Bolt based driver for Neo4j, but there is nothing stopping you using it in any other client/server situation.

OK How do I use?

Most of the examples are in the unit tests, but simply:

Pack an object

public class Movie {
    public string Title { get; set; }
    public string TagLine { get; set; }
    public int Released { get; set; }
}

var packMe = new Movie{Title = "Jurassic Park", Released = 1994, TagLine = "Something Dinosaury"};
byte[] bytes = PackStream.Pack(packMe);

var unpacked = PackStream.Unpack<Movie>(bytes);
unpacked.Title.Should().Be("Jurassic Park");

About

PackStream implementation for .NET

Resources

License

Stars

Watchers

Forks

Packages

No packages published