July 2009

A few days back I discussed XML Serialization in these two articles: Basic XML Serialization in C#, and XML Serialization of Collections. In this article we are going to serialize the same Employee object we serialized in those articles, but this time we are going to use Binary serialization instead. Binary Serialization vs. XML Serialization [...]

{ 0 comments }

Using the Settings file in C#

by Dave on July 22, 2009

in Windows Forms

As a software developer, how many times have you needed to store your application’s settings in a file, be it an ini file, an xml file, or maybe even a plain text file? It is a common requirement for many developers, and with C# it is really simple to do. The Microsoft.NET Framework 2.0 introduced [...]

{ 2 comments }

In this third and final article of my File Comparison in C# series we will be creating a method which compares file hashes. I suggest you read File Comparison in C# – Part 1, and File Comparison in C# – Part 2 before continuing with this article, if you haven’t already done so. What is [...]

{ 5 comments }

In my previous article – File Comparison in C# – Part 1 – I showed you how to create a simple method which compares the file size of two files using the System.IO.FileInfo class. In this article, we will be building upon that previous article so I suggest you read it here before continuing. Now [...]

{ 1 comment }

As a developer you might need to compare files for equality, maybe because you want to verify that your backups are valid, or maybe because you want to search for duplicate files in a folder. Either way you will need to compare two files together, and I am going to show you how. There are [...]

{ 2 comments }