2 // System.Diagnostics.EventLogEntryCollection.cs
5 // Jonathan Pryor (jonpryor@vt.edu)
7 // (C) 2002 Jonathan Pryor
12 using System.Collections;
13 using System.Diagnostics;
15 namespace System.Diagnostics {
17 public class EventLogEntryCollection : ICollection, IEnumerable {
19 private ArrayList eventLogs = new ArrayList ();
21 internal EventLogEntryCollection()
26 get {return eventLogs.Count;}
29 public virtual EventLogEntry this [int index] {
30 get {return (EventLogEntry) eventLogs[index];}
33 bool ICollection.IsSynchronized {
34 get {return eventLogs.IsSynchronized;}
37 object ICollection.SyncRoot {
38 get {return eventLogs.SyncRoot;}
41 public void CopyTo (EventLogEntry[] eventLogs, int index)
43 eventLogs.CopyTo (eventLogs, index);
46 public IEnumerator GetEnumerator ()
48 return eventLogs.GetEnumerator ();
51 void ICollection.CopyTo (Array array, int index)
53 eventLogs.CopyTo (array, index);