using System;
using System.Collections;
using System.Collections.Generic;
namespace System.Net.NetworkInformation
{
/// Stores a set of types.
// Token: 0x0200019B RID: 411
public class MulticastIPAddressInformationCollection : IEnumerable, IEnumerable, ICollection
{
/// Initializes a new instance of the class.
// Token: 0x06000DC5 RID: 3525 RVA: 0x00026B3C File Offset: 0x00024D3C
protected internal MulticastIPAddressInformationCollection()
{
}
/// 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: 0x06000DC6 RID: 3526 RVA: 0x00026B50 File Offset: 0x00024D50
IEnumerator IEnumerable.GetEnumerator()
{
return this.list.GetEnumerator();
}
/// Throws a because the collection is read-only and elements cannot be added to the collection.
/// The object to be added to the collection.
// Token: 0x06000DC7 RID: 3527 RVA: 0x00026B64 File Offset: 0x00024D64
public virtual void Add(MulticastIPAddressInformation address)
{
if (this.IsReadOnly)
{
throw new NotSupportedException("The collection is read-only.");
}
this.list.Add(address);
}
/// Throws a because the collection is read-only and elements cannot be removed.
// Token: 0x06000DC8 RID: 3528 RVA: 0x00026B94 File Offset: 0x00024D94
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: 0x06000DC9 RID: 3529 RVA: 0x00026BB8 File Offset: 0x00024DB8
public virtual bool Contains(MulticastIPAddressInformation 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: 0x06000DCA RID: 3530 RVA: 0x00026BC8 File Offset: 0x00024DC8
public virtual void CopyTo(MulticastIPAddressInformation[] 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: 0x06000DCB RID: 3531 RVA: 0x00026BD8 File Offset: 0x00024DD8
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: 0x06000DCC RID: 3532 RVA: 0x00026BE8 File Offset: 0x00024DE8
public virtual bool Remove(MulticastIPAddressInformation 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: 0x1700047D RID: 1149
// (get) Token: 0x06000DCD RID: 3533 RVA: 0x00026C18 File Offset: 0x00024E18
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: 0x1700047E RID: 1150
// (get) Token: 0x06000DCE RID: 3534 RVA: 0x00026C28 File Offset: 0x00024E28
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: 0x1700047F RID: 1151
public virtual MulticastIPAddressInformation this[int index]
{
get
{
return this.list[index];
}
}
// Token: 0x04000C80 RID: 3200
private List list = new List();
}
}