using System;
using System.Collections;
using System.Collections.Generic;
namespace System.Net.NetworkInformation
{
/// Stores a set of types.
// Token: 0x02000160 RID: 352
public class IPAddressInformationCollection : IEnumerable, IEnumerable, ICollection
{
// Token: 0x06000BCD RID: 3021 RVA: 0x00024168 File Offset: 0x00022368
internal IPAddressInformationCollection()
{
}
/// 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: 0x06000BCE RID: 3022 RVA: 0x0002417C File Offset: 0x0002237C
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: 0x06000BCF RID: 3023 RVA: 0x00024190 File Offset: 0x00022390
public virtual void Add(IPAddressInformation 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: 0x06000BD0 RID: 3024 RVA: 0x000241C0 File Offset: 0x000223C0
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: 0x06000BD1 RID: 3025 RVA: 0x000241E4 File Offset: 0x000223E4
public virtual bool Contains(IPAddressInformation address)
{
return this.list.Contains(address);
}
/// Copies the collection to the specified array.
/// 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: 0x06000BD2 RID: 3026 RVA: 0x000241F4 File Offset: 0x000223F4
public virtual void CopyTo(IPAddressInformation[] 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: 0x06000BD3 RID: 3027 RVA: 0x00024204 File Offset: 0x00022404
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: 0x06000BD4 RID: 3028 RVA: 0x00024214 File Offset: 0x00022414
public virtual bool Remove(IPAddressInformation 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: 0x170002FA RID: 762
// (get) Token: 0x06000BD5 RID: 3029 RVA: 0x00024244 File Offset: 0x00022444
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: 0x170002FB RID: 763
// (get) Token: 0x06000BD6 RID: 3030 RVA: 0x00024254 File Offset: 0x00022454
public virtual bool IsReadOnly
{
get
{
return true;
}
}
/// Gets the at the specified index in the collection.
/// The at the specified location.
/// The zero-based index of the element.
// Token: 0x170002FC RID: 764
public virtual IPAddressInformation this[int index]
{
get
{
return this.list[index];
}
}
// Token: 0x04000BA3 RID: 2979
private List list = new List();
}
}