System.LocalDataStore.SetDataInternal C# (CSharp) Method

SetDataInternal() private method

private SetDataInternal ( int slot, Object data, bool bAlloc ) : void
slot int
data Object
bAlloc bool
return void
        internal void SetDataInternal(int slot, Object data, bool bAlloc)
        {               
            // We try to delay allocate the dataTable (in cases like the manager clearing a 
            // just-freed slot in all stores            
            if (slot >= m_DataTable.Length)
            {
                if (!bAlloc)
                    return;
                SetCapacity(m_Manager.GetSlotTableLength());
            }

            // Set the data on the given slot.
            m_DataTable[slot] = data;            
        }