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

◆ IndexOfSessionInList()

static int System.Diagnostics.Tracing.EventProvider.IndexOfSessionInList ( List< SessionInfo > sessions,
int etwSessionId )
inlinestaticprivateinherited

Definition at line 399 of file EventProvider.cs.

400 {
401 if (sessions == null)
402 {
403 return -1;
404 }
405 for (int i = 0; i < sessions.Count; i++)
406 {
407 if (sessions[i].etwSessionId == etwSessionId)
408 {
409 return i;
410 }
411 }
412 return -1;
413 }

References System.Collections.Generic.Dictionary< TKey, TValue >.Count.

Referenced by System.Diagnostics.Tracing.EventProvider.GetSessions().