PERWAPI.PDBWriter.CloseMethod C# (CSharp) Method

CloseMethod() public method

Close the current method.
public CloseMethod ( ) : void
return void
        public void CloseMethod()
        {
            // Make sure a method is open
            if (currentMethod == null)
                throw new Exception("No methods currently open.");

            // Check to make sure all scopes have been closed.
            if (currentScope != null)
                throw new Exception("Can not close method until all scopes are closed.  Method Token: " + currentMethod.Token.ToString());

            // Change the current method to null
            currentMethod = null;
        }