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

◆ GetCustomAttributes() [2/2]

override object[] System.Reflection.RuntimeFieldInfo.GetCustomAttributes ( Type attributeType,
bool inherit )
inline

Implements System.Reflection.ICustomAttributeProvider.

Definition at line 81 of file RuntimeFieldInfo.cs.

82 {
83 if (attributeType == null)
84 {
85 throw new ArgumentNullException("attributeType");
86 }
87 RuntimeType runtimeType = attributeType.UnderlyingSystemType as RuntimeType;
88 if (runtimeType == null)
89 {
90 throw new ArgumentException(SR.Arg_MustBeType, "attributeType");
91 }
92 return CustomAttribute.GetCustomAttributes(this, runtimeType);
93 }

References System.SR.Arg_MustBeType, and System.Reflection.CustomAttribute.GetCustomAttributes().