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

◆ GetCustomAttributes() [2/2]

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

Implements System.Reflection.ICustomAttributeProvider.

Definition at line 314 of file RuntimeMethodInfo.cs.

315 {
316 if (attributeType == null)
317 {
318 throw new ArgumentNullException("attributeType");
319 }
320 RuntimeType runtimeType = attributeType.UnderlyingSystemType as RuntimeType;
321 if (runtimeType == null)
322 {
323 throw new ArgumentException(SR.Arg_MustBeType, "attributeType");
324 }
325 return CustomAttribute.GetCustomAttributes(this, runtimeType, inherit);
326 }

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