1 instantiation of LocalDataStoreSlot
System.Private.CoreLib (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (1)
664return new LocalDataStoreSlot(new ThreadLocal<object?>());
27 references to LocalDataStoreSlot
mscorlib (1)
parent\ref\mscorlib.cs (1)
358[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.LocalDataStoreSlot))]
netstandard (1)
netstandard.cs (1)
1047[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.LocalDataStoreSlot))]
PresentationCore (2)
System\Windows\InterOp\HwndSource.cs (1)
2802private static System.LocalDataStoreSlot _threadSlot;
System\Windows\OleServicesContext.cs (1)
31private static readonly LocalDataStoreSlot s_threadDataSlot = Thread.AllocateDataSlot();
PresentationFramework (2)
System\Windows\Controls\Grid.cs (1)
3334private static readonly LocalDataStoreSlot s_tempDefinitionsDataSlot = Thread.AllocateDataSlot();
System\windows\Documents\TextEditor.cs (1)
2017private static LocalDataStoreSlot _threadLocalStoreSlot = Thread.AllocateDataSlot();
System.Private.CoreLib (20)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (20)
502public static LocalDataStoreSlot AllocateDataSlot() => LocalDataStore.AllocateSlot(); 503public static LocalDataStoreSlot AllocateNamedDataSlot(string name) => LocalDataStore.AllocateNamedSlot(name); 504public static LocalDataStoreSlot GetNamedDataSlot(string name) => LocalDataStore.GetNamedSlot(name); 506public static object? GetData(LocalDataStoreSlot slot) => LocalDataStore.GetData(slot); 507public static void SetData(LocalDataStoreSlot slot, object? data) => LocalDataStore.SetData(slot, data); 660private static Dictionary<string, LocalDataStoreSlot>? s_nameToSlotMap; 662public static LocalDataStoreSlot AllocateSlot() 667private static Dictionary<string, LocalDataStoreSlot> EnsureNameToSlotMap() 669Dictionary<string, LocalDataStoreSlot>? nameToSlotMap = s_nameToSlotMap; 675nameToSlotMap = new Dictionary<string, LocalDataStoreSlot>(); 679public static LocalDataStoreSlot AllocateNamedSlot(string name) 681LocalDataStoreSlot slot = AllocateSlot(); 682Dictionary<string, LocalDataStoreSlot> nameToSlotMap = EnsureNameToSlotMap(); 690public static LocalDataStoreSlot GetNamedSlot(string name) 692Dictionary<string, LocalDataStoreSlot> nameToSlotMap = EnsureNameToSlotMap(); 695if (!nameToSlotMap.TryGetValue(name, out LocalDataStoreSlot? slot)) 706Dictionary<string, LocalDataStoreSlot> nameToSlotMap = EnsureNameToSlotMap(); 713private static ThreadLocal<object?> GetThreadLocal(LocalDataStoreSlot slot) 721public static object? GetData(LocalDataStoreSlot slot) 726public static void SetData(LocalDataStoreSlot slot, object? value)
System.Threading.Thread (1)
src\runtime\artifacts\obj\System.Threading.Thread\Release\net11.0\System.Threading.Thread.Forwards.cs (1)
3[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.LocalDataStoreSlot))]