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

◆ Set()

IAsyncLocalValueMap System.Threading.AsyncLocalValueMap.ThreeElementAsyncLocalValueMap.Set ( IAsyncLocal key,
object value,
bool treatNullValueAsNonexistent )
inline

Implements System.Threading.IAsyncLocalValueMap.

Definition at line 150 of file AsyncLocalValueMap.cs.

151 {
152 if (value != null || !treatNullValueAsNonexistent)
153 {
154 if (key == _key1)
155 {
157 }
158 if (key == _key2)
159 {
161 }
162 if (key == _key3)
163 {
165 }
166 MultiElementAsyncLocalValueMap multiElementAsyncLocalValueMap = new MultiElementAsyncLocalValueMap(4);
172 }
173 if (key != _key1)
174 {
175 if (key != _key2)
176 {
177 if (key != _key3)
178 {
179 return this;
180 }
181 return new TwoElementAsyncLocalValueMap(_key1, _value1, _key2, _value2);
182 }
183 return new TwoElementAsyncLocalValueMap(_key1, _value1, _key3, _value3);
184 }
185 return new TwoElementAsyncLocalValueMap(_key2, _value2, _key3, _value3);
186 }
ThreeElementAsyncLocalValueMap(IAsyncLocal key1, object value1, IAsyncLocal key2, object value2, IAsyncLocal key3, object value3)

References System.Threading.AsyncLocalValueMap.ThreeElementAsyncLocalValueMap.ThreeElementAsyncLocalValueMap(), System.Threading.AsyncLocalValueMap.ThreeElementAsyncLocalValueMap._key1, System.Threading.AsyncLocalValueMap.ThreeElementAsyncLocalValueMap._key2, System.Threading.AsyncLocalValueMap.ThreeElementAsyncLocalValueMap._key3, System.Threading.AsyncLocalValueMap.ThreeElementAsyncLocalValueMap._value1, System.Threading.AsyncLocalValueMap.ThreeElementAsyncLocalValueMap._value2, System.Threading.AsyncLocalValueMap.ThreeElementAsyncLocalValueMap._value3, System.key, and System.value.