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

◆ Set()

void System.Diagnostics.Activity.BaggageLinkedList.Set ( KeyValuePair< string, string > value)
inline

Definition at line 31 of file Activity.cs.

32 {
33 if (value.Value == null)
34 {
35 Remove(value.Key);
36 return;
37 }
38 lock (this)
39 {
40 for (DiagNode<KeyValuePair<string, string>> diagNode = _first; diagNode != null; diagNode = diagNode.Next)
41 {
42 if (diagNode.Value.Key == value.Key)
43 {
44 diagNode.Value = value;
45 return;
46 }
47 }
49 diagNode2.Next = _first;
51 }
52 }
DiagNode< KeyValuePair< string, string > > _first
Definition Activity.cs:12

References System.Diagnostics.Activity.BaggageLinkedList._first, System.Diagnostics.Activity.BaggageLinkedList.Remove(), and System.value.

Referenced by System.Diagnostics.Activity.SetBaggage().