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

◆ GetEventSourceBaseType()

static Type System.Diagnostics.Tracing.EventSource.GetEventSourceBaseType ( Type eventSourceType,
bool allowEventSourceOverride,
bool reflectionOnly )
inlinestaticprivateinherited

Definition at line 2151 of file EventSource.cs.

2152 {
2154 if (type.BaseType == null)
2155 {
2156 return null;
2157 }
2158 do
2159 {
2160 type = type.BaseType;
2161 }
2162 while (type != null && type.IsAbstract);
2163 if (type != null)
2164 {
2166 {
2168 {
2169 return null;
2170 }
2171 }
2172 else if (type.Name != "EventSource")
2173 {
2174 return null;
2175 }
2176 }
2177 return type;
2178 }

References System.FullName, and System.type.

Referenced by System.Diagnostics.Tracing.EventSource.CreateManifestAndDescriptors().