System.Reflection.Emit.ScopeTree.AddScopeInfo C# (CSharp) Метод

AddScopeInfo() приватный Метод

private AddScopeInfo ( ScopeAction sa, int iOffset ) : void
sa ScopeAction
iOffset int
Результат void
        internal void AddScopeInfo(ScopeAction sa, int iOffset)
        {
            if (sa == ScopeAction.Close && m_iOpenScopeCount <=0)
            {
                throw new ArgumentException(Environment.GetResourceString("Argument_UnmatchingSymScope"));
            }

            // make sure that arrays are large enough to hold addition info
            EnsureCapacity();

             
             
             
            m_ScopeActions[m_iCount] = sa;
            m_iOffsets[m_iCount] = iOffset;
            m_localSymInfos[m_iCount] = null;
            m_iCount++;
            if (sa == ScopeAction.Open)
            {
                m_iOpenScopeCount++;
            }
            else
                m_iOpenScopeCount--;

        }