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

◆ GetCustomAttributes() [2/2]

override object[] System.Reflection.RuntimeAssembly.GetCustomAttributes ( Type attributeType,
bool inherit )
inlinevirtualinherited

Reimplemented from System.Reflection.Assembly.

Definition at line 283 of file RuntimeAssembly.cs.

284 {
285 if (attributeType == null)
286 {
287 throw new ArgumentNullException("attributeType");
288 }
289 RuntimeType runtimeType = attributeType.UnderlyingSystemType as RuntimeType;
290 if (runtimeType == null)
291 {
292 throw new ArgumentException(SR.Arg_MustBeType, "attributeType");
293 }
294 return CustomAttribute.GetCustomAttributes(this, runtimeType);
295 }

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