XML serialization of a Dictionary with a custom IEqualityComparer

前端 未结 2 485
有刺的猬
有刺的猬 2021-01-20 17:12

I want to serialize a Dictionary that has a custom IEqualityComparer.

I\'ve tried using DataContractSerializer but I can\'t get the C

2条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-20 17:52

    I just read the error report...

    Binary serialization fails for object graphs with more than ~13.2 million objects.

    if you have a graph that big, you always may have some problems.

    Would you like to try an alternative serializer? "protobuf-net" is a bespoke binary serializer following Google's protocol buffers format, and may work for larger sets, especially in "group" mode.

提交回复
热议问题