C# Class Mono.Cecil.Fluent.Analyzer.InstructionExtensions

Mostra file Open project: mwoelk83/Mono.Cecil.Fluent

Public Methods

Method Description
GetPopCount ( this self, MethodReference method, int currentstacksize ) : int

Get the number of values removed on the stack for this instruction.

GetPushCount ( this self ) : int

Get the number of values placed on the stack by this instruction.

Private Methods

Method Description
InstructionExtensions ( ) : System

Method Details

GetPopCount() public static method

Get the number of values removed on the stack for this instruction.
public static GetPopCount ( this self, MethodReference method, int currentstacksize ) : int
self this The Instruction on which the extension method can be called.
method MethodReference The method inside which the instruction comes from (needed for StackBehaviour.Varpop).
currentstacksize int This method returns this value when stack behaviour is StackBehaviour.PopAll.
return int

GetPushCount() public static method

Get the number of values placed on the stack by this instruction.
public static GetPushCount ( this self ) : int
self this The Instruction on which the extension method can be called.
return int