private static ThreadLocal<object> GetThreadLocal(LocalDataStoreSlot slot) { if (slot == null) { throw new ArgumentNullException(nameof(slot)); } Debug.Assert(slot.Data != null); return slot.Data; }