Beer implementation for .NET
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Beer.NET.Examples
Beer.NET.Performance
Beer.NET.Tests
Beer.NET
.gitattributes
.gitignore
.travis.yml
Beer.NET.sln
LICENSE.md
README.md

README.md

Build Status Travis CI Build status AppVeyor NuGet

Beer.NET

A Beer implementation for .NET Framework.

Prerequisites

  • .NET Framework 2.0 or higher

Installation

The simplest way to install Beer.NET is to use our NuGet package. Just open the context menu for your project with Visual Studio and click the option "Manage NuGet Packages...".

PM> Install-Package Beer.NET

You can also build Beer.NET yourself and add it as an reference to your project.

Usage

Simple example in C#:

using DerAtrox.BeerNET;

public void BeerTest() {
	IBeerEncoder encoder = new BeerEx(); // or new Beer()
	string serialized = encoder.Encode("Hi");
	// Value: "µµµµµµµµµµµµµµµµ∫BEERBEERBEERBEERBEERBEERBEERBEER∫"

	string deserialized = encoder.Decode("µµµµµµµµµµµµµµµµ∫BEERBEERBEERBEERBEERBEERBEERBEER∫");
	// Value: "Hi"
}