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

◆ GetName() [2/2]

static string System.Diagnostics.Tracing.EventSource.GetName ( Type eventSourceType,
EventManifestOptions flags )
inlinestaticprivateinherited

Definition at line 1193 of file EventSource.cs.

1194 {
1195 if (eventSourceType == null)
1196 {
1197 throw new ArgumentNullException("eventSourceType");
1198 }
1199 EventSourceAttribute eventSourceAttribute = (EventSourceAttribute)GetCustomAttributeHelper(eventSourceType, typeof(EventSourceAttribute), flags);
1200 if (eventSourceAttribute != null && eventSourceAttribute.Name != null)
1201 {
1202 return eventSourceAttribute.Name;
1203 }
1204 return eventSourceType.Name;
1205 }
static Attribute GetCustomAttributeHelper(MemberInfo member, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors|DynamicallyAccessedMemberTypes.PublicProperties)] Type attributeType, EventManifestOptions flags=EventManifestOptions.None)

References System.Diagnostics.Tracing.EventSource.GetCustomAttributeHelper().