Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CopyTo() [1/3]

void ICollection. System.Security.Cryptography.X509Certificates.X509ChainElementCollection.CopyTo ( Array array,
int index )
inlineprivate

Definition at line 47 of file X509ChainElementCollection.cs.

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 {
59 throw new ArgumentOutOfRangeException("index", System.SR.ArgumentOutOfRange_Index);
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 }
static string ArgumentOutOfRange_Index
Definition SR.cs:30
static string Arg_RankMultiDimNotSupported
Definition SR.cs:18
static string Argument_InvalidOffLen
Definition SR.cs:22
Definition SR.cs:7

References System.SR.Arg_RankMultiDimNotSupported, System.SR.Argument_InvalidOffLen, System.SR.ArgumentOutOfRange_Index, System.array, System.Security.Cryptography.X509Certificates.X509ChainElementCollection.Count, and System.index.