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

◆ IsCustomAttributeDefinedHelper()

static bool System.Diagnostics.Tracing.EventSource.IsCustomAttributeDefinedHelper ( MemberInfo member,
Type attributeType,
EventManifestOptions flags = EventManifestOptions::None )
inlinestaticpackageinherited

Definition at line 2080 of file EventSource.cs.

2081 {
2082 if (!member.Module.Assembly.ReflectionOnly && (flags & EventManifestOptions.AllowEventSourceOverride) == 0)
2083 {
2084 return member.IsDefined(attributeType, inherit: false);
2085 }
2087 {
2088 if (AttributeTypeNamesMatch(attributeType, customAttribute.Constructor.ReflectedType))
2089 {
2090 return true;
2091 }
2092 }
2093 return false;
2094 }
static bool AttributeTypeNamesMatch(Type attributeType, Type reflectedAttributeType)
static IList< CustomAttributeData > GetCustomAttributes(MemberInfo target)
bool IsDefined(Type attributeType, bool inherit)

References System.Diagnostics.Tracing.EventSource.AttributeTypeNamesMatch(), System.Reflection.CustomAttributeData.GetCustomAttributes(), System.Reflection.MemberInfo.IsDefined(), and System.Reflection.MemberInfo.Module.

Referenced by System.Diagnostics.Tracing.EventSource.CreateManifestAndDescriptors(), and System.Diagnostics.Tracing.ManifestBuilder.CreateManifestString().