I have List<HtmlAgilityPack.HtmlNode>, but protobuf-net gives me the error that it does not have a contract. How can I specify a contract for him when I have no source? He actually said that he cannot deduce a type, but I guess because I did not use its attibute, right?
List<HtmlAgilityPack.HtmlNode>
The binary serializer also complains by default because the type is not marked as serializable.
EDIT: error message:
Type is not expected, and no contract can be inferred: HtmlAgilityPack.HtmlNode
, HTML ... html - ! , :
protobuf-net v2 TypeModel , , ( v2 , ). , - , , . - RuntimeTypeModel.Default, MetaType ( ). , (/), , .. .
, "", DTO ( ) DTO.
: , Serializer.*. , TypeModel /, .
Serializer.*
HTML-agility-pack, , protobuf-net.
BSon ; . http://www.mongodb.org/display/DOCS/CSharp+Driver+Serialization+Tutorial#CSharpDriverSerializationTutorial-Writeacustomserializer
, #.