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

◆ Create()

static IAsyncLocalValueMap System.Threading.AsyncLocalValueMap.Create ( IAsyncLocal key,
object value,
bool treatNullValueAsNonexistent )
inlinestatic

Definition at line 364 of file AsyncLocalValueMap.cs.

365 {
366 if (value == null && treatNullValueAsNonexistent)
367 {
368 return Empty;
369 }
370 return new OneElementAsyncLocalValueMap(key, value);
371 }

References System.Threading.AsyncLocalValueMap.Empty, System.key, and System.value.

Referenced by System.Threading.ExecutionContext.SetLocalValue().