"Fossies" - the Fresh Open Source Software Archive 
Member "csharp/ZipFileEntries.cs" (30 Apr 2005, 1459 Bytes) of package /windows/misc/unz600dn.zip:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C# source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
For more information about "ZipFileEntries.cs" see the
Fossies "Dox" file reference documentation.
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
21 using System;
22 using System.Collections;
23
24 namespace 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 }