1#region README
2
3	//_____________________________________________________________________________
4	//
5	//Sample C# code, .NET Framework 1.1, contributed to the Info-Zip project by
6	//Adrian Maull, April 2005.
7	//
8	//If you have questions or comments, contact me at adrian.maull@sprintpcs.com.  Though
9	//I will try to respond to coments/questions, I do not guarantee such response.
10	//
11	//THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
12	//KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13	//IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
14	//PARTICULAR PURPOSE.
15	//
16	//_____________________________________________________________________________
17
18
19#endregion
20
21using System;
22using System.Collections;
23
24namespace CSharpInfoZip_UnZipSample
25{
26	/// <summary>
27	/// Summary description for ZipFileEntries
28	/// </summary>
29	[Serializable]
30	public class ZipFileEntries: CollectionBase, IDisposable
31	{
32
33		public ZipFileEntries()
34		{
35		}
36
37		//the normal collections methods...
38		public void Add(ZipFileEntry obj)
39		{
40			List.Add(obj);
41		}
42
43		public void Remove(int index)
44		{
45			if (index > Count - 1 || index < 0)
46			{
47				//throw an error here...
48			}
49			else
50			{
51				List.RemoveAt(index);
52			}
53		}
54
55		public ZipFileEntry Item(int Index)
56		{
57			return (ZipFileEntry) List[Index];
58		}
59
60
61		#region IDisposable Members
62
63		public void Dispose()
64		{
65			//Any custom dispose logic goes here...
66		}
67
68		#endregion
69
70
71
72	}
73}
74