Hello,
The following test fails with this error:
"System.InvalidOperationException : No suitable Default IB encoding found."
[ProtoContract]
public class A
{
[ProtoMember(1)]
public IB B { get; set; }
}
public interface IB
{
}
[ProtoContract]
public class B : IB
{
[ProtoMember(1)]
public int SomeProperty { get; set; }
}
[TestFixture]
public class TestFixture
{
[Test]
public void Test()
{
var a = new A {B = new B()};
using (var m = new MemoryStream())
{
Serializer.Serialize(m, a);
}
}
}
I'm using this implementation of Protobuf.net :
http://code.google.com/p/protobuf-net/
Did I miss something? thanks you very much.