title: How to compute size of MessagePack .NET object?
body: <p>If I have a class without any variable sized objects (e.g. strings, lists, etc.), is there some utility function in the <a href="https://github.com/neuecc/MessagePack-CSharp#object-type-serialization" rel="nofollow noreferrer">MessagePack</a> library to compute the size of the binary representation of the object?</p>
  <p>Example class:</p>
  <pre><code>[MessagePackObject]
  class Foo {
    [Key(0)]
    public int A { get; set; }
    [Key(1)]
    public float B { get; set; }
  }
  </code></pre>
  <p>My current best bet is to simply serialize an object and measure it's length.</p>