mscorlib(4.0.0.0) API with additions
LocalDataStoreSlot.cs
2 
3 namespace System
4 {
6  [ComVisible(true)]
7  public sealed class LocalDataStoreSlot
8  {
9  private LocalDataStoreMgr m_mgr;
10 
11  private int m_slot;
12 
13  private long m_cookie;
14 
15  internal LocalDataStoreMgr Manager => m_mgr;
16 
17  internal int Slot => m_slot;
18 
19  internal long Cookie => m_cookie;
20 
21  internal LocalDataStoreSlot(LocalDataStoreMgr mgr, int slot, long cookie)
22  {
23  m_mgr = mgr;
24  m_slot = slot;
25  m_cookie = cookie;
26  }
27 
30  {
31  LocalDataStoreMgr mgr = m_mgr;
32  if (mgr != null)
33  {
34  int slot = m_slot;
35  m_slot = -1;
36  mgr.FreeDataSlot(slot, m_cookie);
37  }
38  }
39  }
40 }
Encapsulates a memory slot to store local data. This class cannot be inherited.
Definition: __Canon.cs:3