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

◆ GetCustomAttributes() [2/2]

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

Implements System.Reflection.ICustomAttributeProvider.

Definition at line 119 of file RuntimePropertyInfo.cs.

120 {
121 if (attributeType == null)
122 {
123 throw new ArgumentNullException("attributeType");
124 }
125 RuntimeType runtimeType = attributeType.UnderlyingSystemType as RuntimeType;
126 if (runtimeType == null)
127 {
128 throw new ArgumentException(SR.Arg_MustBeType, "attributeType");
129 }
130 return CustomAttribute.GetCustomAttributes(this, runtimeType);
131 }

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