public LocalDataStore CreateLocalDataStore()
{
// Create a new local data store.
LocalDataStore Store = new LocalDataStore(this, m_SlotInfoTable.Length);
bool tookLock = false;
RuntimeHelpers.PrepareConstrainedRegions();
try {
Monitor.ReliableEnter(this, ref tookLock);
// Add the store to the array list and return it.
m_ManagedLocalDataStores.Add(Store);
}
finally {
if (tookLock)
Monitor.Exit(this);
}
return Store;
}