using System; using System.Collections; using System.Collections.Generic; namespace System.Net.NetworkInformation { /// Stores a set of types. // Token: 0x020001C3 RID: 451 public class UnicastIPAddressInformationCollection : IEnumerable, IEnumerable, ICollection { /// Initializes a new instance of the class. // Token: 0x06000ECE RID: 3790 RVA: 0x000294BC File Offset: 0x000276BC protected internal UnicastIPAddressInformationCollection() { } /// Returns an object that can be used to iterate through this collection. /// An object that implements the interface and provides access to the types in this collection. // Token: 0x06000ECF RID: 3791 RVA: 0x000294D0 File Offset: 0x000276D0 IEnumerator IEnumerable.GetEnumerator() { return this.list.GetEnumerator(); } /// Throws a because this operation is not supported for this collection. /// The object to be added to the collection. // Token: 0x06000ED0 RID: 3792 RVA: 0x000294E4 File Offset: 0x000276E4 public virtual void Add(UnicastIPAddressInformation address) { if (this.IsReadOnly) { throw new NotSupportedException("The collection is read-only."); } this.list.Add(address); } /// Throws a because this operation is not supported for this collection. // Token: 0x06000ED1 RID: 3793 RVA: 0x00029514 File Offset: 0x00027714 public virtual void Clear() { if (this.IsReadOnly) { throw new NotSupportedException("The collection is read-only."); } this.list.Clear(); } /// Checks whether the collection contains the specified object. /// true if the object exists in the collection; otherwise, false. /// The object to be searched in the collection. // Token: 0x06000ED2 RID: 3794 RVA: 0x00029538 File Offset: 0x00027738 public virtual bool Contains(UnicastIPAddressInformation address) { return this.list.Contains(address); } /// Copies the elements in this collection to a one-dimensional array of type . /// A one-dimensional array that receives a copy of the collection. /// The zero-based index in at which the copy begins. /// /// is null. /// /// is less than zero. /// /// is multidimensional.-or- The number of elements in this is greater than the available space from to the end of the destination . /// The elements in this cannot be cast automatically to the type of the destination . // Token: 0x06000ED3 RID: 3795 RVA: 0x00029548 File Offset: 0x00027748 public virtual void CopyTo(UnicastIPAddressInformation[] array, int offset) { this.list.CopyTo(array, offset); } /// Returns an object that can be used to iterate through this collection. /// An object that implements the interface and provides access to the types in this collection. // Token: 0x06000ED4 RID: 3796 RVA: 0x00029558 File Offset: 0x00027758 public virtual IEnumerator GetEnumerator() { return ((IEnumerable)this.list).GetEnumerator(); } /// Throws a because the collection is read-only and elements cannot be removed. /// Always throws a . /// The object to be removed. // Token: 0x06000ED5 RID: 3797 RVA: 0x00029568 File Offset: 0x00027768 public virtual bool Remove(UnicastIPAddressInformation address) { if (this.IsReadOnly) { throw new NotSupportedException("The collection is read-only."); } return this.list.Remove(address); } /// Gets the number of types in this collection. /// An value that contains the number of types in this collection. // Token: 0x17000507 RID: 1287 // (get) Token: 0x06000ED6 RID: 3798 RVA: 0x00029598 File Offset: 0x00027798 public virtual int Count { get { return this.list.Count; } } /// Gets a value that indicates whether access to this collection is read-only. /// true in all cases. // Token: 0x17000508 RID: 1288 // (get) Token: 0x06000ED7 RID: 3799 RVA: 0x000295A8 File Offset: 0x000277A8 public virtual bool IsReadOnly { get { return true; } } /// Gets the instance at the specified index in the collection. /// The at the specified location. /// The zero-based index of the element. // Token: 0x17000509 RID: 1289 public virtual UnicastIPAddressInformation this[int index] { get { return this.list[index]; } } // Token: 0x04000D24 RID: 3364 private List list = new List(); } }