Click here to Skip to main content
15,896,063 members
Articles / Programming Languages / C# 4.0

Mini XML serializer

Rate me:
Please Sign up or sign in to vote.
4.80/5 (5 votes)
6 Jul 2010CPOL2 min read 25.4K   209   10  
A small XML serializer for Silverlight projects.
using System;
using System.Collections.Generic;
using System.Text;

namespace MiniXMLSerializer.TestClasses
{
    class CallbackClass : IMiniSerializable
    {
        // MUST BE PUBLIC otherwise on silverlight there is no chance to hook it again. Sad.
        public void HookIt(DataList list)
        {
            list.Something += new EventHandler(list_Something);
        }

        void list_Something(object sender, EventArgs e)
        {
            Console.WriteLine("Callback works!");
        }

        public void OnSerialize(MiniSerializer serializer)
        {
        }

        public void OnDeserialize(MiniSerializer serializer)
        {
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Paul Scherrer Institute
Switzerland Switzerland
Full time developer in a Gov. research institute, I invest also some time to develop games.

I currently own since 5 years a PHP / AJAX MMORPG:
http://www.nowhere-else.org

And developing a MMO space combat trader game in Silverlight:
http://www.nebularider.com

Comments and Discussions