Click here to Skip to main content
15,886,810 members
Articles / Programming Languages / C#

Serializable Extra Types for .NET 4

Rate me:
Please Sign up or sign in to vote.
4.85/5 (9 votes)
25 May 2011GPL33 min read 52.3K   335   13  
Serialization for Rapid Application Development.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TestLibraryOne;
using System.Xml.Serialization;

namespace TestLibraryTwo
{
    [Serializable]
    [SerializableExtraType(typeof(Animal), typeof(Limb))]
    public class Whale : Mammal
    {
        public bool IsFlipper { get; set; }
    }

    [Serializable]
    [SerializableExtraType(typeof(Animal), typeof(Limb))]
    public class Fin : Limb
    {
        public string Shiney { get; set; }
    }
}

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 GNU General Public License (GPLv3)


Written By
Architect Stackify
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions