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

◆ GetCustomAttributes() [2/2]

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

Implements System.Reflection.ICustomAttributeProvider.

Definition at line 3408 of file RuntimeType.cs.

3409 {
3410 if ((object)attributeType == null)
3411 {
3412 throw new ArgumentNullException("attributeType");
3413 }
3414 RuntimeType runtimeType = attributeType.UnderlyingSystemType as RuntimeType;
3415 if (runtimeType == null)
3416 {
3417 throw new ArgumentException(SR.Arg_MustBeType, "attributeType");
3418 }
3420 }
static object[] GetCustomAttributes(RuntimeType type, RuntimeType caType, bool inherit)

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