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

◆ CreateAttributeArrayHelper()

static object[] System.Reflection.CustomAttribute.CreateAttributeArrayHelper ( RuntimeType elementType,
int elementCount )
inlinestaticprivate

Definition at line 533 of file CustomAttribute.cs.

534 {
535 if (elementCount == 0)
536 {
537 return elementType.GetEmptyArray();
538 }
539 return (object[])Array.CreateInstance(elementType, elementCount);
540 }

References System.Array.CreateInstance(), and System.elementType.

Referenced by System.Reflection.CustomAttribute.GetCustomAttributes(), System.Reflection.CustomAttribute.GetCustomAttributes(), and System.Reflection.CustomAttribute.GetCustomAttributes().