SurroundMethod

Overview

When using the IMethodDefinition.SurroundMethod call, this enum is used to specify what to do with the "After" code.

Location

Value Description
Always Put the before before the original, a try/finally around the original body and the after inside the finally
Exception Put the before before the original, a try/except around the original body and the after inside the except
Never Put the before before the original, and after after but don't add any try/finally or try/except