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

◆ TryGetValue() [1/2]

bool System.Diagnostics.Tracing.EventPayload.TryGetValue ( string key,
[MaybeNullWhen(false)] out object value )
inline

Definition at line 118 of file EventPayload.cs.

119 {
120 if (key == null)
121 {
122 throw new ArgumentNullException("key");
123 }
124 int num = 0;
125 string[] names = m_names;
126 foreach (string text in names)
127 {
128 if (text == key)
129 {
130 value = m_values[num];
131 return true;
132 }
133 num++;
134 }
135 value = null;
136 return false;
137 }

References System.key, System.Diagnostics.Tracing.EventPayload.m_names, System.Diagnostics.Tracing.EventPayload.m_values, System.text, and System.value.