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

◆ AttributeTypeNamesMatch()

static bool System.Diagnostics.Tracing.EventSource.AttributeTypeNamesMatch ( Type attributeType,
Type reflectedAttributeType )
inlinestaticprivateinherited

Definition at line 2138 of file EventSource.cs.

2139 {
2140 if (!(attributeType == reflectedAttributeType) && !string.Equals(attributeType.FullName, reflectedAttributeType.FullName, StringComparison.Ordinal))
2141 {
2142 if (string.Equals(attributeType.Name, reflectedAttributeType.Name, StringComparison.Ordinal) && attributeType.Namespace.EndsWith("Diagnostics.Tracing", StringComparison.Ordinal))
2143 {
2144 return reflectedAttributeType.Namespace.EndsWith("Diagnostics.Tracing", StringComparison.Ordinal);
2145 }
2146 return false;
2147 }
2148 return true;
2149 }

References System.Type.FullName, System.Reflection.MemberInfo.Name, and System.Type.Namespace.

Referenced by System.Diagnostics.Tracing.EventSource.AddProviderEnumKind(), System.Diagnostics.Tracing.EventSource.GetCustomAttributeHelper(), and System.Diagnostics.Tracing.EventSource.IsCustomAttributeDefinedHelper().