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

Generation of web feeds and podcasts

Rate me:
Please Sign up or sign in to vote.
4.09/5 (8 votes)
26 Oct 2008BSD4 min read 32K   693   37  
This article describes the generation of web feeds (RSS, Atom, podcasts) using wrapper classes.
using System;
using System.Collections.Generic;
using System.Text;

namespace Uncas.Web
{
    public class FeedEmailAddress
    {
        public FeedEmailAddress(string emailAddress, string realName)
        {
            Feed.CheckRequiredValue(emailAddress, "emailAddress");
            Feed.CheckRequiredValue(realName, "realName");
            this.EmailAddress = emailAddress;
            this.RealName = realName;
        }

        public string EmailAddress { get; set; }
        public string RealName { get; set; }

        public override string ToString()
        {
            return string.Format("{0} ({1})", this.EmailAddress, this.RealName);
        }
    }
}

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 BSD License


Written By
Software Developer
Denmark Denmark
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions