System.LocalDataStoreMgr.CreateLocalDataStore C# (CSharp) Method

CreateLocalDataStore() public method

public CreateLocalDataStore ( ) : LocalDataStore
return LocalDataStore
    	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;
	    }