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

◆ Remove()

void System.Diagnostics.Activity.BaggageLinkedList.Remove ( string key)
inline

Definition at line 54 of file Activity.cs.

55 {
56 lock (this)
57 {
58 if (_first == null)
59 {
60 return;
61 }
62 if (_first.Value.Key == key)
63 {
65 return;
66 }
68 while (diagNode.Next != null)
69 {
70 if (diagNode.Next.Value.Key == key)
71 {
72 diagNode.Next = diagNode.Next.Next;
73 break;
74 }
75 diagNode = diagNode.Next;
76 }
77 }
78 }
DiagNode< KeyValuePair< string, string > > _first
Definition Activity.cs:12

References System.Diagnostics.Activity.BaggageLinkedList._first, System.key, System.Diagnostics.DiagNode< T >.Next, and System.Diagnostics.DiagNode< T >.Value.

Referenced by System.Diagnostics.Activity.BaggageLinkedList.Set().