#PackStream.NET
Alpha
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.
- NuGet at: PackStream.NET
- MyGet at: PackStream.NET
Most of the examples are in the unit tests, but simply:
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");