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

◆ GetCustomAttributes() [6/16]

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

Definition at line 370 of file Attribute.cs.

371 {
372 if (element == null)
373 {
374 throw new ArgumentNullException("element");
375 }
376 return element.MemberType switch
377 {
378 MemberTypes.Property => InternalGetCustomAttributes((PropertyInfo)element, typeof(Attribute), inherit),
379 MemberTypes.Event => InternalGetCustomAttributes((EventInfo)element, typeof(Attribute), inherit),
380 _ => element.GetCustomAttributes(typeof(Attribute), inherit) as Attribute[],
381 };
382 }
static Attribute[] InternalGetCustomAttributes(PropertyInfo element, Type type, bool inherit)
Definition Attribute.cs:15
object[] GetCustomAttributes(bool inherit)

References System.Reflection.MemberInfo.GetCustomAttributes(), and System.Attribute.InternalGetCustomAttributes().