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

◆ CopyTo() [1/2]

void System.Dynamic.ExpandoObject.KeyCollection.CopyTo ( string[] array,
int arrayIndex )
inline

Definition at line 97 of file ExpandoObject.cs.

98 {
100 ContractUtils.RequiresArrayRange(array, arrayIndex, _expandoCount, "arrayIndex", "Count");
102 {
103 CheckVersion();
104 ExpandoData data = _expando._data;
105 for (int i = 0; i < data.Class.Keys.Length; i++)
106 {
107 if (data[i] != Uninitialized)
108 {
109 array[arrayIndex++] = data.Class.Keys[i];
110 }
111 }
112 }
113 }
static readonly object Uninitialized
static void RequiresNotNull(object value, string paramName)

References System.Dynamic.ExpandoObject._data, System.Dynamic.ExpandoObject.KeyCollection._expando, System.Dynamic.ExpandoObject.KeyCollection._expandoCount, System.array, System.arrayIndex, System.Dynamic.ExpandoObject.KeyCollection.CheckVersion(), System.Dynamic.ExpandoObject.ExpandoData.Class, System.Dynamic.ExpandoClass.Keys, System.Dynamic.ExpandoObject.LockObject, System.Dynamic.Utils.ContractUtils.RequiresNotNull(), and System.Dynamic.ExpandoObject.Uninitialized.