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

◆ GetCustomAttributes() [14/16]

static Attribute[] System.Attribute.GetCustomAttributes ( ParameterInfo element,
bool inherit )
inlinestaticinherited

Definition at line 466 of file Attribute.cs.

467 {
468 if (element == null)
469 {
470 throw new ArgumentNullException("element");
471 }
472 if (element.Member == null)
473 {
474 throw new ArgumentException(SR.Argument_InvalidParameterInfo, "element");
475 }
476 MemberInfo member = element.Member;
477 if (member.MemberType == MemberTypes.Method && inherit)
478 {
479 return InternalParamGetCustomAttributes(element, null, inherit);
480 }
481 return element.GetCustomAttributes(typeof(Attribute), inherit) as Attribute[];
482 }
static Attribute[] InternalParamGetCustomAttributes(ParameterInfo param, Type type, bool inherit)
Definition Attribute.cs:175
virtual object[] GetCustomAttributes(bool inherit)

References System.SR.Argument_InvalidParameterInfo, System.Reflection.ParameterInfo.GetCustomAttributes(), System.Attribute.InternalParamGetCustomAttributes(), System.Reflection.ParameterInfo.Member, and System.Reflection.MemberInfo.MemberType.