scripts
This commit is contained in:
@@ -0,0 +1,133 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace System.Net.NetworkInformation
|
||||
{
|
||||
/// <summary>Stores a set of <see cref="T:System.Net.NetworkInformation.UnicastIPAddressInformation" /> types.</summary>
|
||||
// Token: 0x020001C3 RID: 451
|
||||
public class UnicastIPAddressInformationCollection : IEnumerable, IEnumerable<UnicastIPAddressInformation>, ICollection<UnicastIPAddressInformation>
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Net.NetworkInformation.UnicastIPAddressInformationCollection" /> class.</summary>
|
||||
// Token: 0x06000ECE RID: 3790 RVA: 0x000294BC File Offset: 0x000276BC
|
||||
protected internal UnicastIPAddressInformationCollection()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Returns an object that can be used to iterate through this collection.</summary>
|
||||
/// <returns>An object that implements the <see cref="T:System.Collections.IEnumerator" /> interface and provides access to the <see cref="T:System.Net.NetworkInformation.UnicastIPAddressInformation" /> types in this collection.</returns>
|
||||
// Token: 0x06000ECF RID: 3791 RVA: 0x000294D0 File Offset: 0x000276D0
|
||||
IEnumerator IEnumerable.GetEnumerator()
|
||||
{
|
||||
return this.list.GetEnumerator();
|
||||
}
|
||||
|
||||
/// <summary>Throws a <see cref="T:System.NotSupportedException" /> because this operation is not supported for this collection.</summary>
|
||||
/// <param name="address">The object to be added to the collection.</param>
|
||||
// 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);
|
||||
}
|
||||
|
||||
/// <summary>Throws a <see cref="T:System.NotSupportedException" /> because this operation is not supported for this collection.</summary>
|
||||
// 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();
|
||||
}
|
||||
|
||||
/// <summary>Checks whether the collection contains the specified <see cref="T:System.Net.NetworkInformation.UnicastIPAddressInformation" /> object.</summary>
|
||||
/// <returns>true if the <see cref="T:System.Net.NetworkInformation.UnicastIPAddressInformation" /> object exists in the collection; otherwise, false.</returns>
|
||||
/// <param name="address">The <see cref="T:System.Net.NetworkInformation.UnicastIPAddressInformation" /> object to be searched in the collection.</param>
|
||||
// Token: 0x06000ED2 RID: 3794 RVA: 0x00029538 File Offset: 0x00027738
|
||||
public virtual bool Contains(UnicastIPAddressInformation address)
|
||||
{
|
||||
return this.list.Contains(address);
|
||||
}
|
||||
|
||||
/// <summary>Copies the elements in this collection to a one-dimensional array of type <see cref="T:System.Net.NetworkInformation.UnicastIPAddressInformation" />.</summary>
|
||||
/// <param name="array">A one-dimensional array that receives a copy of the collection.</param>
|
||||
/// <param name="offset">The zero-based index in <paramref name="array" /> at which the copy begins.</param>
|
||||
/// <exception cref="T:System.ArgumentNullException">
|
||||
/// <paramref name="array" /> is null. </exception>
|
||||
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
||||
/// <paramref name="index" /> is less than zero. </exception>
|
||||
/// <exception cref="T:System.ArgumentException">
|
||||
/// <paramref name="array" /> is multidimensional.-or- The number of elements in this <see cref="T:System.Net.NetworkInformation.UnicastIPAddressInformationCollection" /> is greater than the available space from <paramref name="offset" /> to the end of the destination <paramref name="array" />. </exception>
|
||||
/// <exception cref="T:System.InvalidCastException">The elements in this <see cref="T:System.Net.NetworkInformation.UnicastIPAddressInformationCollection" /> cannot be cast automatically to the type of the destination <paramref name="array" />. </exception>
|
||||
// Token: 0x06000ED3 RID: 3795 RVA: 0x00029548 File Offset: 0x00027748
|
||||
public virtual void CopyTo(UnicastIPAddressInformation[] array, int offset)
|
||||
{
|
||||
this.list.CopyTo(array, offset);
|
||||
}
|
||||
|
||||
/// <summary>Returns an object that can be used to iterate through this collection.</summary>
|
||||
/// <returns>An object that implements the <see cref="T:System.Collections.IEnumerator" /> interface and provides access to the <see cref="T:System.Net.NetworkInformation.UnicastIPAddressInformation" /> types in this collection.</returns>
|
||||
// Token: 0x06000ED4 RID: 3796 RVA: 0x00029558 File Offset: 0x00027758
|
||||
public virtual IEnumerator<UnicastIPAddressInformation> GetEnumerator()
|
||||
{
|
||||
return ((IEnumerable<UnicastIPAddressInformation>)this.list).GetEnumerator();
|
||||
}
|
||||
|
||||
/// <summary>Throws a <see cref="T:System.NotSupportedException" /> because the collection is read-only and elements cannot be removed.</summary>
|
||||
/// <returns>Always throws a <see cref="T:System.NotSupportedException" />.</returns>
|
||||
/// <param name="address">The object to be removed.</param>
|
||||
// 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);
|
||||
}
|
||||
|
||||
/// <summary>Gets the number of <see cref="T:System.Net.NetworkInformation.UnicastIPAddressInformation" /> types in this collection.</summary>
|
||||
/// <returns>An <see cref="T:System.Int32" /> value that contains the number of <see cref="T:System.Net.NetworkInformation.UnicastIPAddressInformation" /> types in this collection.</returns>
|
||||
// Token: 0x17000507 RID: 1287
|
||||
// (get) Token: 0x06000ED6 RID: 3798 RVA: 0x00029598 File Offset: 0x00027798
|
||||
public virtual int Count
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.list.Count;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets a value that indicates whether access to this collection is read-only.</summary>
|
||||
/// <returns>true in all cases.</returns>
|
||||
// Token: 0x17000508 RID: 1288
|
||||
// (get) Token: 0x06000ED7 RID: 3799 RVA: 0x000295A8 File Offset: 0x000277A8
|
||||
public virtual bool IsReadOnly
|
||||
{
|
||||
get
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets the <see cref="T:System.Net.NetworkInformation.UnicastIPAddressInformation" /> instance at the specified index in the collection.</summary>
|
||||
/// <returns>The <see cref="T:System.Net.NetworkInformation.UnicastIPAddressInformation" /> at the specified location.</returns>
|
||||
/// <param name="index">The zero-based index of the element.</param>
|
||||
// Token: 0x17000509 RID: 1289
|
||||
public virtual UnicastIPAddressInformation this[int index]
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.list[index];
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000D24 RID: 3364
|
||||
private List<UnicastIPAddressInformation> list = new List<UnicastIPAddressInformation>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user