Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Serializable Extra Types for .NET 4

, 25 May 2011 GPL3
Serialization for Rapid Application Development.
SerializableExtraTypes.zip
TestLibraryThree
Properties
TestLibraryThree.csproj.vspscc
TestLibraryTwo
Properties
TestLibraryTwo.csproj.user
TestLibraryTwo.csproj.vspscc
Local.testsettings
SerializableExtraTypes.gpState
SerializableExtraTypes.sln.docstates
SerializableExtraTypes.vsmdi
SerializableExtraTypes.vssscc
TraceAndTestImpact.testsettings
SerializableExtraTypes
AMightyOak.Net.ico
Properties
SerializableExtraTypes.csproj.user
SerializableExtraTypes.csproj.vspscc
SerializableExtraTypes.Tests
Properties
SerializableExtraTypes.Tests.csproj.user
SerializableExtraTypes.Tests.csproj.vspscc
TestLibraryOne
Properties
TestLibraryOne.csproj.user
TestLibraryOne.csproj.vspscc
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace System.Xml.Serialization
{
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]
    public class SerializableExtraTypeAttribute : Attribute
    {
        public SerializableExtraTypeAttribute(Type t) 
            : base() { _Types = new Type[] { t }; }
        public SerializableExtraTypeAttribute(Type t1, Type t2) 
            : base() { _Types = new Type[] { t1, t2 }; }
        public SerializableExtraTypeAttribute(Type t1, Type t2, Type t3) 
            : base() { _Types = new Type[] { t1, t2, t3, }; }
        public SerializableExtraTypeAttribute(Type t1, Type t2, Type t3, Type t4) 
            : base() { _Types = new Type[] { t1, t2, t3, t4, }; }
        public SerializableExtraTypeAttribute(Type t1, Type t2, Type t3, Type t4, Type t5) 
            : base() { _Types = new Type[] { t1, t2, t3, t4, t5, }; }
        public SerializableExtraTypeAttribute(Type t1, Type t2, Type t3, Type t4, Type t5, Type t6) 
            : base() { _Types = new Type[] { t1, t2, t3, t4, t5, t6, }; }

        private IEnumerable<Type> _Types = null;

        public IEnumerable<Type> Types
        {
            get { return _Types; }
        }
    }
}

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)

Share

About the Author

Daniel Gidman
Architect Stackify
United States United States
No Biography provided
Follow on   Twitter   Google+

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.141223.1 | Last Updated 25 May 2011
Article Copyright 2011 by Daniel Gidman
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid