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

◆ GetTrait()

string? System.Diagnostics.Tracing.EventSource.GetTrait ( string key)
inlineinherited

Definition at line 422 of file EventSource.cs.

423 {
424 if (m_traits != null)
425 {
426 for (int i = 0; i < m_traits.Length - 1; i += 2)
427 {
428 if (m_traits[i] == key)
429 {
430 return m_traits[i + 1];
431 }
432 }
433 }
434 return null;
435 }

References System.key, and System.Diagnostics.Tracing.EventSource.m_traits.