scripts
This commit is contained in:
@@ -0,0 +1,140 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
namespace System.Security.Cryptography
|
||||
{
|
||||
/// <summary>Represents a collection of <see cref="T:System.Security.Cryptography.AsnEncodedData" /> objects. This class cannot be inherited.</summary>
|
||||
// Token: 0x020002A5 RID: 677
|
||||
public sealed class AsnEncodedDataCollection : ICollection, IEnumerable
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.AsnEncodedDataCollection" /> class.</summary>
|
||||
// Token: 0x060018B8 RID: 6328 RVA: 0x00054DAC File Offset: 0x00052FAC
|
||||
public AsnEncodedDataCollection()
|
||||
{
|
||||
this._list = new ArrayList();
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.AsnEncodedDataCollection" /> class and adds an <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object to the collection.</summary>
|
||||
/// <param name="asnEncodedData">The <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object to add to the collection.</param>
|
||||
// Token: 0x060018B9 RID: 6329 RVA: 0x00054DC0 File Offset: 0x00052FC0
|
||||
public AsnEncodedDataCollection(AsnEncodedData asnEncodedData)
|
||||
{
|
||||
this._list = new ArrayList();
|
||||
this._list.Add(asnEncodedData);
|
||||
}
|
||||
|
||||
/// <summary>Copies the <see cref="T:System.Security.Cryptography.AsnEncodedDataCollection" /> object into an array.</summary>
|
||||
/// <param name="array">The array that the <see cref="T:System.Security.Cryptography.AsnEncodedDataCollection" /> object is to be copied into.</param>
|
||||
/// <param name="index">The location where the copy operation starts.</param>
|
||||
/// <exception cref="T:System.ArgumentException">
|
||||
/// <paramref name="array" /> is a multidimensional array, which is not supported by this method.</exception>
|
||||
/// <exception cref="T:System.ArgumentException">The length for <paramref name="index" /> is invalid.</exception>
|
||||
/// <exception cref="T:System.ArgumentNullException">
|
||||
/// <paramref name="array" /> is null.</exception>
|
||||
/// <exception cref="T:System.ArgumentOutOfRangeException">The length for <paramref name="index" /> is out of range.</exception>
|
||||
// Token: 0x060018BA RID: 6330 RVA: 0x00054DE0 File Offset: 0x00052FE0
|
||||
void ICollection.CopyTo(Array array, int index)
|
||||
{
|
||||
this._list.CopyTo(array, index);
|
||||
}
|
||||
|
||||
/// <summary>Returns an <see cref="T:System.Security.Cryptography.AsnEncodedDataEnumerator" /> object that can be used to navigate the <see cref="T:System.Security.Cryptography.AsnEncodedDataCollection" /> object.</summary>
|
||||
/// <returns>An <see cref="T:System.Security.Cryptography.AsnEncodedDataEnumerator" /> object that can be used to navigate the collection.</returns>
|
||||
// Token: 0x060018BB RID: 6331 RVA: 0x00054DF0 File Offset: 0x00052FF0
|
||||
IEnumerator IEnumerable.GetEnumerator()
|
||||
{
|
||||
return new AsnEncodedDataEnumerator(this);
|
||||
}
|
||||
|
||||
/// <summary>Gets the number of <see cref="T:System.Security.Cryptography.AsnEncodedData" /> objects in a collection.</summary>
|
||||
/// <returns>The number of <see cref="T:System.Security.Cryptography.AsnEncodedData" /> objects.</returns>
|
||||
// Token: 0x170007BD RID: 1981
|
||||
// (get) Token: 0x060018BC RID: 6332 RVA: 0x00054DF8 File Offset: 0x00052FF8
|
||||
public int Count
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._list.Count;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets a value that indicates whether access to the <see cref="T:System.Security.Cryptography.AsnEncodedDataCollection" /> object is thread safe.</summary>
|
||||
/// <returns>false in all cases.</returns>
|
||||
// Token: 0x170007BE RID: 1982
|
||||
// (get) Token: 0x060018BD RID: 6333 RVA: 0x00054E08 File Offset: 0x00053008
|
||||
public bool IsSynchronized
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._list.IsSynchronized;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets an <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object from the <see cref="T:System.Security.Cryptography.AsnEncodedDataCollection" /> object.</summary>
|
||||
/// <returns>An <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object.</returns>
|
||||
/// <param name="index">The location in the collection.</param>
|
||||
// Token: 0x170007BF RID: 1983
|
||||
public AsnEncodedData this[int index]
|
||||
{
|
||||
get
|
||||
{
|
||||
return (AsnEncodedData)this._list[index];
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets an object that can be used to synchronize access to the <see cref="T:System.Security.Cryptography.AsnEncodedDataCollection" /> object.</summary>
|
||||
/// <returns>An object used to synchronize access to the <see cref="T:System.Security.Cryptography.AsnEncodedDataCollection" /> object.</returns>
|
||||
// Token: 0x170007C0 RID: 1984
|
||||
// (get) Token: 0x060018BF RID: 6335 RVA: 0x00054E2C File Offset: 0x0005302C
|
||||
public object SyncRoot
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._list.SyncRoot;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Adds an <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object to the <see cref="T:System.Security.Cryptography.AsnEncodedDataCollection" /> object.</summary>
|
||||
/// <returns>The index of the added <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object.</returns>
|
||||
/// <param name="asnEncodedData">The <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object to add to the collection.</param>
|
||||
/// <exception cref="T:System.ArgumentNullException">
|
||||
/// <paramref name="asnEncodedData" /> is null.</exception>
|
||||
/// <exception cref="T:System.Security.Cryptography.CryptographicException">Neither of the OIDs are null and the OIDs do not match.</exception>
|
||||
/// <exception cref="T:System.Security.Cryptography.CryptographicException">One of the OIDs is null and the OIDs do not match.</exception>
|
||||
// Token: 0x060018C0 RID: 6336 RVA: 0x00054E3C File Offset: 0x0005303C
|
||||
public int Add(AsnEncodedData asnEncodedData)
|
||||
{
|
||||
return this._list.Add(asnEncodedData);
|
||||
}
|
||||
|
||||
/// <summary>Copies the <see cref="T:System.Security.Cryptography.AsnEncodedDataCollection" /> object into an array.</summary>
|
||||
/// <param name="array">The array that the <see cref="T:System.Security.Cryptography.AsnEncodedDataCollection" /> object is to be copied into.</param>
|
||||
/// <param name="index">The location where the copy operation starts.</param>
|
||||
// Token: 0x060018C1 RID: 6337 RVA: 0x00054E4C File Offset: 0x0005304C
|
||||
public void CopyTo(AsnEncodedData[] array, int index)
|
||||
{
|
||||
this._list.CopyTo(array, index);
|
||||
}
|
||||
|
||||
/// <summary>Returns an <see cref="T:System.Security.Cryptography.AsnEncodedDataEnumerator" /> object that can be used to navigate the <see cref="T:System.Security.Cryptography.AsnEncodedDataCollection" /> object.</summary>
|
||||
/// <returns>An <see cref="T:System.Security.Cryptography.AsnEncodedDataEnumerator" /> object.</returns>
|
||||
// Token: 0x060018C2 RID: 6338 RVA: 0x00054E5C File Offset: 0x0005305C
|
||||
public AsnEncodedDataEnumerator GetEnumerator()
|
||||
{
|
||||
return new AsnEncodedDataEnumerator(this);
|
||||
}
|
||||
|
||||
/// <summary>Removes an <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object from the <see cref="T:System.Security.Cryptography.AsnEncodedDataCollection" /> object.</summary>
|
||||
/// <param name="asnEncodedData">The <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object to remove.</param>
|
||||
/// <exception cref="T:System.ArgumentNullException">
|
||||
/// <paramref name="asnEncodedData" /> is null.</exception>
|
||||
// Token: 0x060018C3 RID: 6339 RVA: 0x00054E64 File Offset: 0x00053064
|
||||
public void Remove(AsnEncodedData asnEncodedData)
|
||||
{
|
||||
this._list.Remove(asnEncodedData);
|
||||
}
|
||||
|
||||
// Token: 0x040013A2 RID: 5026
|
||||
private ArrayList _list;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user