using System; using System.Collections; namespace System.Diagnostics { /// Provides a strongly typed collection of objects. /// 2 // Token: 0x020000EF RID: 239 public class ProcessThreadCollection : ReadOnlyCollectionBase { /// Initializes a new instance of the class, with no associated instances. // Token: 0x06000885 RID: 2181 RVA: 0x00016AF0 File Offset: 0x00014CF0 protected ProcessThreadCollection() { } /// Initializes a new instance of the class, using the specified array of instances. /// An array of instances with which to initialize this instance. // Token: 0x06000886 RID: 2182 RVA: 0x00016AF8 File Offset: 0x00014CF8 public ProcessThreadCollection(ProcessThread[] processThreads) { base.InnerList.AddRange(processThreads); } // Token: 0x06000887 RID: 2183 RVA: 0x00016B0C File Offset: 0x00014D0C internal static ProcessThreadCollection GetEmpty() { return new ProcessThreadCollection(); } /// Gets an index for iterating over the set of process threads. /// A that indexes the threads in the collection. /// The zero-based index value of the thread in the collection. /// 2 // Token: 0x17000242 RID: 578 public ProcessThread this[int index] { get { return (ProcessThread)base.InnerList[index]; } } /// Appends a process thread to the collection. /// The zero-based index of the thread in the collection. /// The thread to add to the collection. /// 2 // Token: 0x06000889 RID: 2185 RVA: 0x00016B28 File Offset: 0x00014D28 public int Add(ProcessThread thread) { return base.InnerList.Add(thread); } /// Determines whether the specified process thread exists in the collection. /// true if the thread exists in the collection; otherwise, false. /// A instance that indicates the thread to find in this collection. /// 2 // Token: 0x0600088A RID: 2186 RVA: 0x00016B38 File Offset: 0x00014D38 public bool Contains(ProcessThread thread) { return base.InnerList.Contains(thread); } /// 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: 0x0600088B RID: 2187 RVA: 0x00016B48 File Offset: 0x00014D48 public void CopyTo(ProcessThread[] array, int index) { base.InnerList.CopyTo(array, index); } /// Provides the location of a specified thread within the collection. /// The zero-based index that defines the location of the thread within the . /// The whose index is retrieved. /// 2 // Token: 0x0600088C RID: 2188 RVA: 0x00016B58 File Offset: 0x00014D58 public int IndexOf(ProcessThread thread) { return base.InnerList.IndexOf(thread); } /// Inserts a process thread at the specified location in the collection. /// The zero-based index indicating the location at which to insert the thread. /// The thread to insert into the collection. /// 2 // Token: 0x0600088D RID: 2189 RVA: 0x00016B68 File Offset: 0x00014D68 public void Insert(int index, ProcessThread thread) { base.InnerList.Insert(index, thread); } /// Deletes a process thread from the collection. /// The thread to remove from the collection. /// 2 // Token: 0x0600088E RID: 2190 RVA: 0x00016B78 File Offset: 0x00014D78 public void Remove(ProcessThread thread) { base.InnerList.Remove(thread); } } }