Welcome to mirror list, hosted at ThFree Co, Russian Federation.

EventLogEntryCollection.cs « System.Diagnostics « System « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 746eec2a6c203a50259503b9d20e1c03d91cd583 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//
// System.Diagnostics.EventLogEntryCollection.cs
//
// Authors:
//   Jonathan Pryor (jonpryor@vt.edu)
//
// (C) 2002 Jonathan Pryor
//


using System;
using System.Collections;
using System.Diagnostics;

namespace System.Diagnostics {

	public class EventLogEntryCollection : ICollection, IEnumerable {

		private ArrayList eventLogs = new ArrayList ();

		internal EventLogEntryCollection()
		{
		}

		public int Count {
			get {return eventLogs.Count;}
		}

		public virtual EventLogEntry this [int index] {
			get {return (EventLogEntry) eventLogs[index];}
		}

		bool ICollection.IsSynchronized {
			get {return eventLogs.IsSynchronized;}
		}

		object ICollection.SyncRoot {
			get {return eventLogs.SyncRoot;}
		}

		public void CopyTo (EventLogEntry[] eventLogs, int index)
		{
			eventLogs.CopyTo (eventLogs, index);
		}

		public IEnumerator GetEnumerator ()
		{
			return eventLogs.GetEnumerator ();
		}

		void ICollection.CopyTo (Array array, int index)
		{
			eventLogs.CopyTo (array, index);
		}
	}
}