mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 17:02:10 -10:00
* CounterCreationData.cs: Added missing attributes * CounterSample.cs: Implemented missing rest, fixed signature * CounterSampleCalculator.cs: Added private constructor, redirected function * Process.cs: Added attributes, added event mechanism * ProcessModule.cs: Added missing attributes * ProcessModuleCollection.cs: Redone using the already inherited-from ArrayList. Simplifies this a LOT * ProcessStartInfo.cs: Added missing attributes, moved internal fields to the begining of the file, restyling * ProcessThread.cs: Added missing attributes, added pseudo constructor * ProcessThreadCollection.cs: Implemented * PerformanceCounterPermission.cs: Fixed typo in class name * PerformanceCounterPermissionAccess.cs: Added attributes, fixed wrong member svn path=/trunk/mcs/; revision=15958
49 lines
897 B
C#
Executable File
49 lines
897 B
C#
Executable File
//
|
|
// System.Diagnostics.ProcessModuleCollection.cs
|
|
//
|
|
// Authors:
|
|
// Dick Porter ([email protected])
|
|
// Andreas Nahr ([email protected])
|
|
//
|
|
// (C) 2002 Ximian, Inc. http://www.ximian.com
|
|
//
|
|
|
|
using System.Collections;
|
|
|
|
namespace System.Diagnostics
|
|
{
|
|
public class ProcessModuleCollection : ReadOnlyCollectionBase
|
|
{
|
|
|
|
protected ProcessModuleCollection()
|
|
{
|
|
}
|
|
|
|
public ProcessModuleCollection(ProcessModule[] processModules)
|
|
{
|
|
InnerList.AddRange (processModules);
|
|
}
|
|
|
|
public ProcessModule this[int index] {
|
|
get {
|
|
return (ProcessModule)InnerList[index];
|
|
}
|
|
}
|
|
|
|
public bool Contains(ProcessModule module)
|
|
{
|
|
return InnerList.Contains (module);
|
|
}
|
|
|
|
public void CopyTo(ProcessModule[] array, int index)
|
|
{
|
|
InnerList.CopyTo (array, index);
|
|
}
|
|
|
|
public int IndexOf(ProcessModule module)
|
|
{
|
|
return InnerList.IndexOf (module);
|
|
}
|
|
}
|
|
}
|