Can I get the content of a Dictionary using the NrbfDecoder?

Jeroen van den Berg 0 Reputation points
2024-11-29T17:02:26.5333333+00:00

Hi,

I'm following the guide to migrate away from BinaryFormatter. Part of my requirements is that a new version of the application that no longer uses BinaryFormatter will still be able to read payloads generated by the BinaryFormatter. I am trying to use the NrbfDecoder for this, see https://learn.microsoft.com/en-us/dotnet/standard/serialization/binaryformatter-migration-guide/read-nrbf-payloads. It seems to work well with primitive types and classes. But I haven't been able to find a way to read the content of a Dictionary with it. Is this possible? Thanks!

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,965 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.