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
)
inline
static
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
}
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System.Data.MappingType.Attribute
@ Attribute
System.ExceptionArgument.type
@ type
References
System.type
.
System
Diagnostics
Tracing
Statics
Generated by
1.10.0