Click here to Skip to main content
15,885,546 members
Articles / Web Development / ASP.NET

Simple High Performance XML Serialization using RestDirector™

Rate me:
Please Sign up or sign in to vote.
3.00/5 (5 votes)
2 Aug 2008CPOL14 min read 34.6K   87   12  
RestDirector provides performance and readability to XML.
using System;
using System.Collections.Generic;
using System.Text;

namespace RestDirectorDemo.XmlSerialization
{
    public partial class FileListItem : System.ComponentModel.INotifyPropertyChanged
    {
        public FileListItem() { }
        public FileListItem(string text)
        {
            this.text = text;
        }

        /// <summary>
        /// 
        /// </summary>
        public string Text
        {
            get { return this.text; }
            set { this.text = value; this.onPropertyChanged("Text"); }
        }
        private string text;

        /// <summary>
        /// 
        /// </summary>
        /// <param name="propertyName"></param>
        protected void onPropertyChanged(string propertyName)
        {
            if (this.PropertyChanged != null) this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
        }
        public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
    }
}

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
Founder ShofarNexus Corporation
United States United States
ShofarNexus™ is software project started in 1998 with a lot of testing and rejecting of methodologies. Our goals were fast startup and execution, a clean presentation and reliable data distribution. We take ReST to the extreme. We focus some on eye-candy and mostly on the meat and vegetables that are good for business.

ShofarNexus™ mentality is well described by Antoine de Saint-Exupéry who wrote “Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.”

ShofarNexus™ is single-handedly written by John Kozlowski, with over 35 years of software development experience and a lot of hardware design in the first two decades.

Comments and Discussions