Click here to Skip to main content
15,884,099 members
Articles / Programming Languages / C#

Objects With Customizable Properties

Rate me:
Please Sign up or sign in to vote.
3.36/5 (8 votes)
25 Apr 2011CPOL4 min read 35.2K   227   26  
A class with customizable properties without using Reflection.
using System;
using System.Collections.Generic;
using System.Text;

namespace SMoni.ParsableTypes {
    public class Int32Type : DefaultType {

        #region IType Member

        public override object parseValue (object Value_) {
            return (Convert.ToInt32(Value_) as object);
        }

        public override Type getType () {
            return typeof(Int32);
        }

        #endregion

    }
}

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
Architect
Germany Germany
- Born at the dawn of the Video Game Consoles
- Hacked his way through a C64 by Assembler
- Survived the hard times with an Amiga
- Got hit by Delphi on PC in the mid-90s
- Sinned with VB6
- Redeemed by C++ and C#

Comments and Discussions