9 posts about BinaryFormatter by 4 contributors.
Know BinaryFormatter? Share what you know with developers who are learning it.
Serialization in .NET facilitates object state persistence, enabling transmission across networks or storage in various formats like binary and XML. It ensures data integrity, exemplified by the US Visa application, utilizing binary serialization. Implementing serialization requires marking classes with attributes.
Serialization in C# is the process of converting an object into a stream of bytes to store the object to memory, a database, or a file. Its main purpose is to save the state of an object in order to be able to recreate it when needed. The reverse process is called deserialization.
Serializing and deserializing objects using BinaryFormatter in C# is a powerful technique for converting complex objects into a binary format for storage, transmission, or deep cloning. This process allows objects to be saved to a file, sent over a network, or stored in a database. This approach enables data persistence and is commonly used in applications that require object state preservation.
Learn how to serialize and deserialize C# objects to files using FileStream and BinaryFormatter in a Windows Forms pending-bill example.
This program can stand improvements but it will get you started in creating an invoice and printing it to the printer.
Object serialization is a process of streaming an object into a byte array. This article explains the object serialization process using a real world example.
This is a memory game where you can use your favorite pictures (.bmp, jpg, gif).
There are many occasions when you want to save data in form of objects. An object is a memory stream, which is hard to write using the normal methods. In this article, I show how you can save objects in a database and read back from the database.
Build a C# business card designer using GDI+ graphics, Windows Forms dialogs, and BinaryFormatter serialization to save and load card designs.
DevSocialUpcoming · 3rd editionAI Agents ConferenceNov 23–27, 2026Live onlineMembers only16days leftRegisterPublish an article in this category and earn +1,000 SHARP when it is approved.
Write an article