Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
X509ChainElementCollection.cs
Go to the documentation of this file.
3
5
6public sealed class X509ChainElementCollection : ICollection, IEnumerable, IEnumerable<X509ChainElement>
7{
8 private readonly X509ChainElement[] _elements;
9
10 public int Count => _elements.Length;
11
12 public bool IsSynchronized => false;
13
14 public object SyncRoot => this;
15
16 public X509ChainElement this[int index]
17 {
18 get
19 {
20 if (index < 0)
21 {
23 }
24 if (index >= _elements.Length)
25 {
27 }
28 return _elements[index];
29 }
30 }
31
33 {
35 }
36
41
42 public void CopyTo(X509ChainElement[] array, int index)
43 {
45 }
46
48 {
49 if (array == null)
50 {
51 throw new ArgumentNullException("array");
52 }
53 if (array.Rank != 1)
54 {
56 }
57 if (index < 0 || index >= array.Length)
58 {
60 }
61 if (index + Count > array.Length)
62 {
64 }
65 for (int i = 0; i < Count; i++)
66 {
67 array.SetValue(this[i], index);
68 index++;
69 }
70 }
71
76
81
86}
void CopyTo(KeyValuePair< TKey, TValue >[] array, int index)
static string ArgumentOutOfRange_Index
Definition SR.cs:30
static string InvalidOperation_EnumNotStarted
Definition SR.cs:46
static string Arg_RankMultiDimNotSupported
Definition SR.cs:18
static string Argument_InvalidOffLen
Definition SR.cs:22
Definition SR.cs:7
void CopyTo(T[] array, int arrayIndex)
new IEnumerator< T > GetEnumerator()