A few days ago I wrote an article on basic XML serialization which looked at the XML serialization of an Employee object that we created. In this article I am going to build on that previous article by serializing a collection of Employee objects, so if you have not read Basic XML Serialization in C# [...]
A regular expression, or regex in short, is a string of text which represents a search pattern. They are usually used either to search through text and find strings which match the given pattern, or to validate a string against the search pattern. Regular expressions are extremely powerful but they can prove quite difficult to [...]
Serialization is the process of converting the state of an object into a sequence of bits so that it can be transferred over a network or saved to a file on disk. With XML Serialization, instead of converting an object’s state to bits, it will convert an object’s state to XML. This is particularly useful [...]
In this article I am going to show you how to programmatically send an email to any email address using your Gmail account. The .NET 2.0 framework makes sending emails pretty easy. It contains a System.Net.Mail.MailMessage class which allows you to quickly build an email message. Before we begin building our message we must add [...]
In this short article I am going to show you how to achieve hibernation or standby of Windows programmatically. The .NET 2.0 framework introduced the Application.SetSuspendState() method, which allows you to either hibernate or else standby your pc. This method accepts three parameters – the first parameter “state” is a PowerState enumeration value of either [...]