6 references to s_contextHash
System.Windows.Forms (6)
System\Windows\Forms\Application.ThreadContext.cs (6)
93
s_contextHash
[_id] = this;
321
s_contextHash
.Remove(_id);
448
if (
s_contextHash
is not null)
450
ThreadContext[] contexts = new ThreadContext[
s_contextHash
.Values.Count];
451
s_contextHash
.Values.CopyTo(contexts, 0);
513
if (!
s_contextHash
.TryGetValue(id, out ThreadContext? context) && id == PInvokeCore.GetCurrentThreadId())