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

◆ GetCustomAttributes() [2/2]

override object[] System.Reflection.RuntimeParameterInfo.GetCustomAttributes ( Type attributeType,
bool inherit )
inlinevirtual

Reimplemented from System.Reflection.ParameterInfo.

Definition at line 388 of file RuntimeParameterInfo.cs.

389 {
390 if (attributeType == null)
391 {
392 throw new ArgumentNullException("attributeType");
393 }
395 {
396 return Array.Empty<object>();
397 }
398 RuntimeType runtimeType = attributeType.UnderlyingSystemType as RuntimeType;
399 if (runtimeType == null)
400 {
401 throw new ArgumentException(SR.Arg_MustBeType, "attributeType");
402 }
403 return CustomAttribute.GetCustomAttributes(this, runtimeType);
404 }
static bool IsNullToken(int token)

References System.SR.Arg_MustBeType, System.Reflection.CustomAttribute.GetCustomAttributes(), System.Reflection.MetadataToken.IsNullToken(), and System.Reflection.RuntimeParameterInfo.m_tkParamDef.