Archive for August, 2008

Serialization using C#

Posted on August 8, 2008. Filed under: Language features | Tags: , , , , , |

Serialization using C#
Steps
1. Create a Sample class library
2. Implement custom XML attributes
3. Write Client Call to serialize to XMLString
Example
Create a Sample class library & Implement custom XML attributes
namespace ExpShoppingList
{
[XmlRoot("shoppingList")]
public class ShoppingList
{
    private ArrayList listShopping;
    public ShoppingList()
    {
        listShopping = new ArrayList();
    }
    [XmlElement("item")]
    public Item[] Items
    {
        get
        {
            Item[] items = new [...]

Read Full Post | Make a Comment ( None so far )

Liked it here?
Why not try sites on the blogroll...