Binary read and writing support for dynamic variables


Well-Known Member
Mar 21, 2015

I have added a request for a new feature to C# if you like the idea please vote for it if you are a developer member at the Microsoft developer community.

The issue is that the binary writer only stores the data today of a dynamic variable and not the data type. This works with strict variables sins you know what type it is and can read it back. The solution would be to store the type before the data instead of only data than using a dynamic variable and in this way, we are easy allowed to read it back without doing an extension method.

Last edited: