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

◆ CopyTo() [1/2]

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

Implements System.Collections.ICollection.

Definition at line 73 of file OidCollection.cs.

74 {
75 if (array == null)
76 {
77 throw new ArgumentNullException("array");
78 }
79 if (array.Rank != 1)
80 {
82 }
83 if (index < 0 || index >= array.Length)
84 {
85 throw new ArgumentOutOfRangeException("index", System.SR.ArgumentOutOfRange_Index);
86 }
87 if (index + Count > array.Length)
88 {
90 }
91 for (int i = 0; i < Count; i++)
92 {
93 array.SetValue(this[i], index);
94 index++;
95 }
96 }
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.OidCollection.Count, and System.index.