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

◆ CopyTo() [1/3]

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

Definition at line 63 of file X509ExtensionCollection.cs.

64 {
65 if (array == null)
66 {
67 throw new ArgumentNullException("array");
68 }
69 if (array.Rank != 1)
70 {
72 }
73 if (index < 0 || index >= array.Length)
74 {
75 throw new ArgumentOutOfRangeException("index", System.SR.ArgumentOutOfRange_Index);
76 }
77 if (index + Count > array.Length)
78 {
80 }
81 for (int i = 0; i < Count; i++)
82 {
83 array.SetValue(this[i], index);
84 index++;
85 }
86 }
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.X509ExtensionCollection.Count, and System.index.