get { return this; }
}
- public void CopyTo (EventLogEntry[] eventLogEntries, int index)
+ public void CopyTo (EventLogEntry[] entries, int index)
{
- EventLogEntry[] entries = _impl.GetEntries ();
- Array.Copy (entries, 0, eventLogEntries, index, entries.Length);
+ EventLogEntry[] evLogEntries = _impl.GetEntries ();
+ Array.Copy (evLogEntries, 0, entries, index, evLogEntries.Length);
}
public IEnumerator GetEnumerator ()
public EventLogEntry Current {
get {
-#if NET_2_0
if (_currentEntry != null)
return _currentEntry;
-#else
- if (_currentIndex >= 0 && _currentIndex < _impl.EntryCount)
- return _impl [_currentIndex];
-#endif
throw new InvalidOperationException ("No current EventLog"
+ " entry available, cursor is located before the first"
public bool MoveNext ()
{
_currentIndex++;
-#if NET_2_0
if (_currentIndex >= _impl.EntryCount) {
_currentEntry = null;
return false;
}
_currentEntry = _impl [_currentIndex];
return true;
-#else
- return (_currentIndex < _impl.EntryCount);
-#endif
}
public void Reset ()
readonly EventLogImpl _impl;
int _currentIndex = -1;
-#if NET_2_0
EventLogEntry _currentEntry;
-#endif
}
}
}