mikehadlow / ProtobufSerializer

A simple of example of how to use Google.Protobuf without code generation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ProtobufSerializer

This is a simple example of how to use Google.Protobuf without code generation.

Read the blog post here: How to use Google.Protobuf without code generation in C#

It demonstrates a simple protobuf serializer/deserializer that can create and receive ad-hoc messages.

This is .NET 6 solution. It should build and run directly from Visual Studio 2022.

Program.cs runs a series of tests of Serializer.cs and includes comments on how to use it. Start there.

Released under the MIT licence. This code is free to use without attribution. There is no warrenty whatsoever - use with caution.

About

A simple of example of how to use Google.Protobuf without code generation


Languages

Language:C# 100.0%