Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SimpleEventTypes.cs
Go to the documentation of this file.
3
5
6internal static class SimpleEventTypes<T>
7{
9
11 {
12 [RequiresUnreferencedCode("EventSource WriteEvent will serialize the whole object graph. Trimmer will not safely handle this case because properties may be trimmed. This can be suppressed if the object is a primitive type")]
13 get
14 {
15 return instance ?? (instance = InitInstance());
16 }
17 }
18
19 [RequiresUnreferencedCode("EventSource WriteEvent will serialize the whole object graph. Trimmer will not safely handle this case because properties may be trimmed. This can be suppressed if the object is a primitive type")]
21 {
22 TraceLoggingTypeInfo traceLoggingTypeInfo = TraceLoggingTypeInfo.GetInstance(typeof(T), null);
23 TraceLoggingEventTypes value = new TraceLoggingEventTypes(traceLoggingTypeInfo.Name, traceLoggingTypeInfo.Tags, traceLoggingTypeInfo);
25 return instance;
26 }
27}
static TraceLoggingEventTypes instance
static TraceLoggingEventTypes InitInstance()
static TraceLoggingTypeInfo GetInstance(Type type, List< Type > recursionCheck)
static int CompareExchange(ref int location1, int value, int comparand)