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

◆ CopyTo() [1/3]

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

Definition at line 59 of file AsnEncodedDataCollection.cs.

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