Click here to Skip to main content
15,881,882 members
Articles / Programming Languages / C#

Using attributes to document alterations

Rate me:
Please Sign up or sign in to vote.
3.33/5 (3 votes)
27 May 20033 min read 38.4K   377   11  
Using attributes to solve subjects linked to the daily work of software maintenance.
using System;
using System.Xml.Serialization;
using System.Collections;

namespace Palla.DocGen.App
{
	/// <summary>
	/// Collection of assembly informations
	/// </summary>
	[Serializable()]
	public class AssemblyInformationCollection : System.Collections.CollectionBase
	{
		private string dtIni = String.Empty;
		private string dtFim = String.Empty;

		#region Constructors

		public AssemblyInformationCollection()
		{
		}

		#endregion
		
		#region Methods

		public void Add(AssemblyInformation value)
		{
			this.InnerList.Add(value);
		}

		public void Remove(int index)
		{
			if((index >= this.Count) || (index < 0))
				throw new IndexOutOfRangeException();

			this.InnerList.RemoveAt(index);
		}
		
		public void Insert(int index, AssemblyInformation value)
		{
			this.InnerList.Insert(index, value);
		}

		public void CopyTo(AssemblyInformationCollection array, System.Int32 index)
		{
			foreach (AssemblyInformation obj in this)
				array.Insert(index, obj);
		}

		public bool Contains(AssemblyInformation value)
		{
			return this.InnerList.Contains(value);
		}

		public int IndexOf(AssemblyInformation value)
		{
			return this.InnerList.IndexOf(value);
		}

		#endregion

		#region Properties

		public AssemblyInformation this[int index] 
		{
			get
			{
				if((index >= this.Count) || (index < 0))
					throw new IndexOutOfRangeException();

				return (AssemblyInformation)this.List[index];
			} 
		}

		#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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Brazil Brazil
To develop software is the best work of the world!

Comments and Discussions