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

◆ CopyTo() [1/2]

void System.Dynamic.ExpandoObject.ValueCollection.CopyTo ( object[] array,
int arrayIndex )
inline

Definition at line 230 of file ExpandoObject.cs.

231 {
233 ContractUtils.RequiresArrayRange(array, arrayIndex, _expandoCount, "arrayIndex", "Count");
235 {
236 CheckVersion();
237 ExpandoData data = _expando._data;
238 for (int i = 0; i < data.Class.Keys.Length; i++)
239 {
240 if (data[i] != Uninitialized)
241 {
242 array[arrayIndex++] = data[i];
243 }
244 }
245 }
246 }
static readonly object Uninitialized
static void RequiresNotNull(object value, string paramName)

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