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

◆ CopyTo()

virtual void System.Collections.Hashtable.CopyTo ( Array array,
int arrayIndex )
inlinevirtualinherited

Implements System.Collections.ICollection.

Reimplemented in System.Collections.Hashtable.SyncHashtable.

Definition at line 811 of file Hashtable.cs.

812 {
813 if (array == null)
814 {
815 throw new ArgumentNullException("array", SR.ArgumentNull_Array);
816 }
817 if (array.Rank != 1)
818 {
819 throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, "array");
820 }
821 if (arrayIndex < 0)
822 {
823 throw new ArgumentOutOfRangeException("arrayIndex", SR.ArgumentOutOfRange_NeedNonNegNum);
824 }
825 if (array.Length - arrayIndex < Count)
826 {
827 throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall);
828 }
830 }
void CopyEntries(Array array, int arrayIndex)
Definition Hashtable.cs:796

References System.SR.Arg_ArrayPlusOffTooSmall, System.SR.Arg_RankMultiDimNotSupported, System.SR.ArgumentNull_Array, System.SR.ArgumentOutOfRange_NeedNonNegNum, System.array, System.arrayIndex, System.Collections.Hashtable.CopyEntries(), and System.Collections.Hashtable.Count.

Referenced by System.Xml.Schema.XmlSchemaSet.Add(), System.Collections.Hashtable.SyncHashtable.CopyTo(), System.Collections.DictionaryBase.CopyTo(), System.Collections.Specialized.HybridDictionary.CopyTo(), System.Collections.Specialized.OrderedDictionary.CopyTo(), and System.Collections.Specialized.StringDictionary.CopyTo().