System.LocalDataStoreMgr.FreeNamedDataSlot C# (CSharp) Method

FreeNamedDataSlot() public method

public FreeNamedDataSlot ( String name ) : void
name String
return void
    	public void FreeNamedDataSlot(String name)
    	{
            bool tookLock = false;
            RuntimeHelpers.PrepareConstrainedRegions();
            try {
                Monitor.ReliableEnter(this, ref tookLock);
        		// Remove the name slot association from the hashtable.
        		m_KeyToSlotMap.Remove(name);
        	}
            finally {
                if (tookLock)
                    Monitor.Exit(this);
            }
		}