SciSharp / protobuf.Text

Text format support for protobuf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Google Protobuf for TextFormat

Protobuf is not supporting text-format in the Google.Protobuf C# implementation at this moment. This project provides text format support for protobuf in C#.

Join the chat at https://gitter.im/publiclab/publiclab NuGet

PM> Install-Package Protobuf.Text

How to use:

// parse from text
TestAllTypes parsedFromText = TestAllTypes.Parser.ParseText(text);

// serialize to text
var text = parsedFromText.ToText();

// config
var config = File.ReadAllText("PATH");
var parsed = TextParser.Default.Parse<T>(config);

Related issue on Protobuf repo.

About

Text format support for protobuf

License:Apache License 2.0


Languages

Language:C# 100.0%