Click here to Skip to main content
15,898,943 members
Articles / Programming Languages / C#

Binary Serialization for Objects with Private Attributes

Rate me:
Please Sign up or sign in to vote.
5.00/5 (4 votes)
6 Feb 2023CPOL3 min read 4.3K   42   3  
This work aims to show how to do binary serialization and deserialization of an array of objects in C# with .NET 7.
We are going to write some extension methods for the BinaryWriter and BinaryReader classes, in order to allow for easy writing, and reading, the objects from disk.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Italy Italy
I took a degree in Statistics at the University of Padua (italy) in 1990 and then a PHD in Informatics in 1994. I have been teaching computer science and programming for 30 years at ITT Barsanti of Castelfranco Veneto.
My blog is robertobandiera.altervista.org

Comments and Discussions