Click here to Skip to main content
Click here to Skip to main content
Articles » Web Development » ASP.NET » Samples » Downloads
 

A very standard, powerful and easy to use Sample and Library for working on RSS 2.0

By , 18 Feb 2005
 
namespace IranianExperts.RSS
{
	public class RSSItemCollection : System.Collections.CollectionBase
	{
		/// <summary>
		/// Indexer.
		/// </summary>
		public RSSItem this[int index]
		{
			get
			{
				return((RSSItem) List[index]);
			}
		}

		/// <summary>
		/// Default Constructor.
		/// </summary>
		public RSSItemCollection()
		{
		}

		/// <summary>
		/// Add new a RSSItem to collection.
		/// </summary>
		/// <param name="item"></param>
		/// <returns></returns>
		public int Add(RSSItem item)
		{
			return(List.Add(item));
		}

		/// <summary>
		/// Add new a RSSItem to collection.
		/// </summary>
		/// <param name="title"></param>
		/// <returns></returns>
		public int Add(string title)
		{
			RSSItem oRSSItem = new RSSItem(title);

			return(Add(oRSSItem));
		}

		/// <summary>
		/// Add new a RSSItem to collection.
		/// </summary>
		/// <param name="title"></param>
		/// <param name="link"></param>
		/// <returns></returns>
		public int Add(string title, string link)
		{
			RSSItem oRSSItem = new RSSItem(title, link);

			return(Add(oRSSItem));
		}

		/// <summary>
		/// Remove a RSSItem from collection.
		/// </summary>
		/// <param name="item"></param>
		public void Remove(RSSItem item)
		{
			List.Remove(item);
		}

		/// <summary>
		/// Find a RSSItem by its Title from collection.
		/// </summary>
		/// <param name="title"></param>
		/// <returns></returns>
		public RSSItem FindByTitle(string title)
		{
			int intIndex = 0;
			int intFoundIndex = -1;

			while((intIndex <= List.Count - 1) && (intFoundIndex == -1))
			{
				if(((RSSItem) List[intIndex]).Title == title)
					intFoundIndex = intIndex;

				intIndex++;
			}

			if(intFoundIndex == -1)
				return(null);
			else
				return(this[intFoundIndex]);
		}

		#region Support
		public static string Owner
		{
			get
			{
				return("Dariush Tasdighi - From Tehran, Iran");
			}
		}

		public static string Version
		{
			get
			{
				return("1.0.0");
			}
		}

		public static string Support
		{
			get
			{
				return("Dariush@IranianExperts.com;DariushT@GMail.com;DariushTasdighi@Yahoo.com");
			}
		}

		public static string Homepage
		{
			get
			{
				return("http://www.IranianExperts.com;http://groups.yahoo.com/group/IranianExperts");
			}
		}

		public static string UpdatedDate
		{
			get
			{
				return("14 Feb 2005");
			}
		}
		#endregion
	}
}

By viewing downloads associated with this article you agree to the Terms of use 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 MIT License

About the Author

Dariush Tasdighi
Web Developer
Iran (Islamic Republic Of) Iran (Islamic Republic Of)
Member
I'm experienced in below items:
 
- XML 1.0
- CSS 2.0
- ASP 3.0
- HTML 4.01
- XHTML 1.0
- Javascript 1.5
- .NET Framework 1.1/2.0
- Microsoft Office 2000/XP
- Microsoft Visual Basic 6
- Microsoft SQL Server 2000/2005
- Microsoft C#.NET (Windows Based)
- Microsoft C#.NET (XML Web Service)
- Microsoft C#.NET (Web Based = ASP.NET)
 
My Site URLs:
http://www.IranianExperts.ir
http://www.IranianExperts.com
 
My Yahoo Group URL: http://groups.yahoo.com/group/iranianexperts
 
Mobile: 0098-912-108-7461
Address: Tehran, Tehran, Iran

Permalink | Advertise | Privacy | Mobile
Web04 | 2.6.130516.1 | Last Updated 18 Feb 2005
Article Copyright 2005 by Dariush Tasdighi
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid