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

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

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

Definition at line 174 of file Statics.cs.

174 : Attribute
175 {
176 AttributeType result = null;
177 object[] customAttributes = type.GetCustomAttributes(typeof(AttributeType), inherit: false);
178 if (customAttributes.Length != 0)
179 {
180 return (AttributeType)customAttributes[0];
181 }
182 return result;
183 }

References System.type.