3
//_____________________________________________________________________________
5
//Sample C# code, .NET Framework 1.1, contributed to the Info-Zip project by
6
//Adrian Maull, April 2005.
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.
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
16
//_____________________________________________________________________________
22
using System.Collections;
24
namespace CSharpInfoZip_UnZipSample
27
/// Summary description for ZipFileEntries
30
public class ZipFileEntries: CollectionBase, IDisposable
33
public ZipFileEntries()
37
//the normal collections methods...
38
public void Add(ZipFileEntry obj)
43
public void Remove(int index)
45
if (index > Count - 1 || index < 0)
47
//throw an error here...
55
public ZipFileEntry Item(int Index)
57
return (ZipFileEntry) List[Index];
61
#region IDisposable Members
65
//Any custom dispose logic goes here...