src/Shared/EntityFramework/Core/Common/EntitySql/StaticContext.cs
// <summary>
// Get a scope by the index.
// </summary>
Get a scope by the index.
Get a scope by the index .
internal Scope GetScopeByIndex(int scopeIndex)
        {
            Debug.Assert(scopeIndex >= 0, "scopeIndex >= 0");
            Debug.Assert(scopeIndex <= CurrentScopeIndex, "scopeIndex <= CurrentScopeIndex");
            if (0 > scopeIndex
                || scopeIndex > CurrentScopeIndex)
            {
                var message = Strings.InvalidScopeIndex;
                throw new EntitySqlException(message);
            }
            return _scopes[scopeIndex];
        }
internal Scope GetScopeByIndex ( int scopeIndex ) { Debug . Assert ( scopeIndex >= 0 , " " ) ; Debug . Assert ( scopeIndex <= CurrentScopeIndex , " " ) ; if ( 0 > scopeIndex || scopeIndex > CurrentScopeIndex ) { var message = Strings . InvalidScopeIndex ; throw new EntitySqlException ( message ) ; } return _scopes [ scopeIndex ] ; }
Get a scope by the index.
Get a scope by the index .
scopeIndex
int