LocalDataStoreSlot.cs 745 B

123456789101112131415161718192021222324
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT license.
  3. // See the LICENSE file in the project root for more information.
  4. using System.Threading;
  5. namespace System
  6. {
  7. public sealed class LocalDataStoreSlot
  8. {
  9. internal LocalDataStoreSlot(ThreadLocal<object> data)
  10. {
  11. Data = data;
  12. GC.SuppressFinalize(this);
  13. }
  14. internal ThreadLocal<object> Data { get; private set; }
  15. [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA1821", Justification = "Finalizer preserved for compat, it is suppressed by the constructor.")]
  16. ~LocalDataStoreSlot()
  17. {
  18. }
  19. }
  20. }