using System;
using System.Collections;
namespace System.Diagnostics
{
/// Provides a strongly typed collection of objects.
/// 2
// Token: 0x020000EB RID: 235
public class ProcessModuleCollection : ReadOnlyCollectionBase
{
/// Initializes a new instance of the class, with no associated instances.
// Token: 0x06000842 RID: 2114 RVA: 0x00016680 File Offset: 0x00014880
protected ProcessModuleCollection()
{
}
/// Initializes a new instance of the class, using the specified array of instances.
/// An array of instances with which to initialize this instance.
// Token: 0x06000843 RID: 2115 RVA: 0x00016688 File Offset: 0x00014888
public ProcessModuleCollection(ProcessModule[] processModules)
{
base.InnerList.AddRange(processModules);
}
/// Gets an index for iterating over the set of process modules.
/// A that indexes the modules in the collection
/// The zero-based index value of the module in the collection.
/// 2
// Token: 0x1700021E RID: 542
public ProcessModule this[int index]
{
get
{
return (ProcessModule)base.InnerList[index];
}
}
/// Determines whether the specified process module exists in the collection.
/// true if the module exists in the collection; otherwise, false.
/// A instance that indicates the module to find in this collection.
/// 2
// Token: 0x06000845 RID: 2117 RVA: 0x000166B0 File Offset: 0x000148B0
public bool Contains(ProcessModule module)
{
return base.InnerList.Contains(module);
}
/// Copies an array of instances to the collection, at the specified index.
/// An array of instances to add to the collection.
/// The location at which to add the new instances.
/// 2
// Token: 0x06000846 RID: 2118 RVA: 0x000166C0 File Offset: 0x000148C0
public void CopyTo(ProcessModule[] array, int index)
{
base.InnerList.CopyTo(array, index);
}
/// Provides the location of a specified module within the collection.
/// The zero-based index that defines the location of the module within the .
/// The whose index is retrieved.
/// 2
// Token: 0x06000847 RID: 2119 RVA: 0x000166D0 File Offset: 0x000148D0
public int IndexOf(ProcessModule module)
{
return base.InnerList.IndexOf(module);
}
}
}