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

◆ GetCustomAttributes() [2/2]

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

Implements System.Reflection.ICustomAttributeProvider.

Definition at line 209 of file RuntimeConstructorInfo.cs.

210 {
211 if (attributeType == null)
212 {
213 throw new ArgumentNullException("attributeType");
214 }
215 RuntimeType runtimeType = attributeType.UnderlyingSystemType as RuntimeType;
216 if (runtimeType == null)
217 {
218 throw new ArgumentException(SR.Arg_MustBeType, "attributeType");
219 }
220 return CustomAttribute.GetCustomAttributes(this, runtimeType);
221 }

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