how to serialize a class implements two interfaces who have same based interface

前端 未结 1 1646
不思量自难忘°
不思量自难忘° 2021-01-19 05:36

I am trying use protobuf v2 to serialize a class A implements interfaces B and C. And both B and C derived from D.


[ProtoBuf.ProtoContract]
[ProtoBuf.I         


        
相关标签:
1条回答
  • 2021-01-19 06:09

    Interfaces are not really the same kind of "derived" (inheritance) as class inheritance. While basic interface support is provided, this is not a scenario that protobuf-net currently supports.

    As to whether it could support it - that would take some thought. I would suggest logging a request, here.

    0 讨论(0)
提交回复
热议问题