Building a Windows 8 RSS Reader: Listing 1

Setting the Title property to the absolute path of the link.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VSMWinRTDemo.RSS
{
  public class RSSLink
  {
    public string Title { get; set; }
    public Uri Link { get; set; }
    public RSSLink(string title, Uri link)
    {
Title = !
String.IsNullOrWhiteSpace(title) ? title : link.AbsoluteUri;
Link = link;
    }
  }
}

About the Author

Eric Vogel is a Senior Software Developer for Red Cedar Solutions Group in Okemos, Michigan. He is the president of the Greater Lansing User Group for .NET. Eric enjoys learning about software architecture and craftsmanship, and is always looking for ways to create more robust and testable applications. Contact him at vogelvision@gmail.com.