using System; using System.Collections; using System.Collections.Generic; namespace System.Net.NetworkInformation { /// Stores a set of types. // Token: 0x02000159 RID: 345 public class GatewayIPAddressInformationCollection : IEnumerable, IEnumerable, ICollection { /// Initializes a new instance of the class. // Token: 0x06000B9D RID: 2973 RVA: 0x00023B68 File Offset: 0x00021D68 protected GatewayIPAddressInformationCollection() { } /// 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: 0x06000B9E RID: 2974 RVA: 0x00023B7C File Offset: 0x00021D7C 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: 0x06000B9F RID: 2975 RVA: 0x00023B90 File Offset: 0x00021D90 public virtual void Add(GatewayIPAddressInformation 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: 0x06000BA0 RID: 2976 RVA: 0x00023BC0 File Offset: 0x00021DC0 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: 0x06000BA1 RID: 2977 RVA: 0x00023BE4 File Offset: 0x00021DE4 public virtual bool Contains(GatewayIPAddressInformation 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: 0x06000BA2 RID: 2978 RVA: 0x00023BF4 File Offset: 0x00021DF4 public virtual void CopyTo(GatewayIPAddressInformation[] 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: 0x06000BA3 RID: 2979 RVA: 0x00023C04 File Offset: 0x00021E04 public virtual IEnumerator GetEnumerator() { return ((IEnumerable)this.list).GetEnumerator(); } /// Throws a because this operation is not supported for this collection. /// Always throws a . /// The object to be removed. // Token: 0x06000BA4 RID: 2980 RVA: 0x00023C14 File Offset: 0x00021E14 public virtual bool Remove(GatewayIPAddressInformation 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: 0x170002EB RID: 747 // (get) Token: 0x06000BA5 RID: 2981 RVA: 0x00023C44 File Offset: 0x00021E44 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: 0x170002EC RID: 748 // (get) Token: 0x06000BA6 RID: 2982 RVA: 0x00023C54 File Offset: 0x00021E54 public virtual bool IsReadOnly { get { return true; } } /// Gets the at the specific index of the collection. /// The at the specific index in the collection. /// The index of interest. // Token: 0x170002ED RID: 749 public virtual GatewayIPAddressInformation this[int index] { get { return this.list[index]; } } // Token: 0x04000B98 RID: 2968 private List list = new List(); } }