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

◆ GetOpcodeWithDefault()

static EventOpcode System.Diagnostics.Tracing.EventSource.GetOpcodeWithDefault ( EventOpcode opcode,
string eventName )
inlinestaticpackageinherited

Definition at line 1791 of file EventSource.cs.

1792 {
1793 if (opcode == EventOpcode.Info && eventName != null)
1794 {
1795 if (eventName.EndsWith("Start", StringComparison.Ordinal))
1796 {
1797 return EventOpcode.Start;
1798 }
1799 if (eventName.EndsWith("Stop", StringComparison.Ordinal))
1800 {
1801 return EventOpcode.Stop;
1802 }
1803 }
1804 return opcode;
1805 }

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