PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Instruction­Sequence Class / Instruction­Sequence Methods

InstructionSequence Methods

The InstructionSequence type exposes the following members.

Methods
  NameDescription
Public methodCheckInstructions
Checks whether the instruction stream can be read.
Public methodDetach
Detaches the current InstructionSequence from its parent InstructionBlock.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodRedirect
Redirects to another InstructionSequence all branch targets currently referencing the current InstructionSequence.
Public methodRemove()
Removes the current InstructionSequence from the MethodBodyDeclaration to which it belongs, but does not redirect branching targets.
Public methodRemove(InstructionSequence)
Removes the current InstructionSequence from the MethodBodyDeclaration to which it belongs, and optionally redirects to another InstructionSequence all branching targets to the current InstructionSequence
Public methodSplitAfterReaderPosition
Splits the current sequence after the position of an InstructionReader, and returns a new InstructionSequence containing the second part of the sequence.
Public methodSplitAroundReaderPosition
Splits the current InstructionSequence in maximally three sequences, one containing the instructions before the current instruction of a given InstructionReader, one containing only the current instruction and one containing the instructions after the current instruction.
Public methodToString
Returns a string that represents the current object.
(Overrides Object.ToString().)
See Also