| Exception Management in .NET |
| MSDN |
| This document discusses design and implementation guidelines for exception management systems that use .NET technologies. It focuses on the process of handling exceptions within .NET applications in a highly maintainable and supportable manner. |
|
| Implementing the Prototype design Pattern |
| .NET Xtreme |
| In the example I have created an EmpData class that implements ICloneable and ISerializable interfaces, ICloneable interface is required to mark the class as Cloneable and Clone method is implemented. ISerializable interface is used to implement deep copy (clone) for an EmpData Class, the trick I have used it to serialize the EmpData in a file and Deserialize the file and create another EmpData object, that would copy the Emp objects rather then copying their references as Clone method does. |
|
| Nine reasons not to use serialization |
| The Code Project |
| Although .NET provides a number of quick and easy ways to serialize and deserialize data, do not use them. This article explains why. |
|
| Object Serialization in .NET |
| MSDN |
| Why would you want to use serialization? The two most important reasons are to persist the state of an object to a storage medium so an exact copy can be recreated at a later stage, and to send the object by value from one application domain to another. For example, serialization is used to save session state in ASP.NET and to copy objects to the clipboard in Windows Forms. It is also used by remoting to pass objects by value from one application domain to another. This article provides an overview of the serialization used in Microsoft .NET. |
|
| Object Serialization in Visual Basic .NET |
| MSDN |
| When building applications using objects, we are often faced with the requirement to treat all the various data within an object as a single unit. This comes into play, for instance, when you want to pass an object across the network—since you don't want to send each individual bit of object data one at a time across the network, but rather, all at once. |
|
| Object Serialization using C# |
| The Code Project |
| How to serialize custom created class objects using C#. |
|
| Object Serialization using C# |
| The Code Project |
| Writing crucial data to the disk as TEXT is always dangerous. Any anonymous user can open the text file and easily read your data. With Object Serialization, you can reduce this danger to a certain extent. You can write any complex object directly to a filestream without converting values of individual properties into a text. You can make the data written, to the disk, atleast not human readable. In order for the users to read your data files, they have to use your program. Like a File Open command which you may provide in your application. |
|
| Persisting Application data using Hashtable and IsolatedStorage |
| The Code Project |
| This article demonstrates a custom class that can be used to store and retrieve application data in an easy and reliable manner. It uses an extended Hashtable to persist data into Isolated Storage. You can download a sample project which demonstrates the use of this simple, but very useful class. |
|
| Serialization |
| C#Today |
| One of the most fundamental jobs for a piece of software is saving a document and loading it back up again. This process has become known as serialization, and .NET has strong support for this. In this article, Matthew Reynolds takes a look at how to save and load documents for a simple WinForms application. As part of the work, he introduces a reference implementation for properly handling the creating, saving and opening of documents as laid down by the Windows guidelines. |
|
| The Well-Tempered Exception |
| MSDN |
| A few months ago, I was writing some code and I came across an Exception class that didn't work the way I expected. I wanted to catch an exception and then wrap it in an exception of the same type. However there wasn't a constructor that took an exception, so I couldn't do it. In other words, the class designer hadn't included the (string message, Exception inner) constructor. |
|