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

◆ GetCustomAttribute< AttributeType >() [1/2]

static AttributeType System.Diagnostics.Tracing.Statics.GetCustomAttribute< AttributeType > ( PropertyInfo propInfo)
inlinestatic
Type Constraints
AttributeType :Attribute 

Definition at line 163 of file Statics.cs.

163 : Attribute
164 {
165 AttributeType result = null;
166 object[] customAttributes = propInfo.GetCustomAttributes(typeof(AttributeType), inherit: false);
167 if (customAttributes.Length != 0)
168 {
169 return (AttributeType)customAttributes[0];
170 }
171 return result;
172 }