© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•7mo ago•
19 replies
Demonik

ISerializationSurrogate and collections issue

I'm trying to port old code that was using BinaryFormatter and I'm using ISerializationSurrogate to be able to deserialize old files and it works except for one thing - all collections (Dictionary, HashSet) are returned empty from SerializationEntry.Value. I know they are not empty because in old project when I deserialize directly into type it works fine.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Collections
C#CC# / help
15mo ago
DBFirst generated collections
C#CC# / help
4y ago
How do collections implement Remove and Contains?
C#CC# / help
3y ago