// See https://aka.ms/new-console-template for more information
using NativeBuffering;

[BufferedMessageSource]
public partial class Foobar
{
    public int Foo { get; }
    public string Bar { get; }
    public Foobar(int foo, string bar)
    {
        Foo = foo;
        Bar = bar;
    }
}