PERWAPI.PDBWriter.CloseScope C# (CSharp) Method

CloseScope() public method

Close the current scope at the given offset.
public CloseScope ( int offset ) : void
offset int The offset of where to close the scope.
return void
        public void CloseScope(int offset)
        {
            // Make sure a scope is open
            if (currentScope == null)
                throw new Exception("You can not close a scope now, none are open.");

            // Set the end offset for this scope and close it.
            currentScope.OffsetEnd = offset;
            currentScope = currentScope.ParentScope;
        }