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

◆ IsDefined()

override bool System.Reflection.RuntimeAssembly.IsDefined ( Type attributeType,
bool inherit )
inlinevirtualinherited

Reimplemented from System.Reflection.Assembly.

Definition at line 297 of file RuntimeAssembly.cs.

298 {
299 if (attributeType == null)
300 {
301 throw new ArgumentNullException("attributeType");
302 }
303 RuntimeType runtimeType = attributeType.UnderlyingSystemType as RuntimeType;
304 if (runtimeType == null)
305 {
306 throw new ArgumentException(SR.Arg_MustBeType, "attributeType");
307 }
308 return CustomAttribute.IsDefined(this, runtimeType);
309 }

References System.SR.Arg_MustBeType, System.Runtime.Serialization.Dictionary, and System.Reflection.CustomAttribute.IsDefined().

Referenced by System.Reflection.Emit.AssemblyBuilder.IsDefined().