O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

StackBehaviour

Synopsis

This enumeration is used to set the OpCode.StackBehaviourPush() and OpCode.StackBehaviourPop() methods, which determine how an MSIL instruction pushes an operand onto the stack and pops it off.

public enum StackBehaviour {
   Pop0 = 0,
   Pop1 = 1,
   Pop1_pop1 = 2,
   Popi = 3,
   Popi_pop1 = 4,
   Popi_popi = 5,
   Popi_popi8 = 6,
   Popi_popi_popi = 7,
   Popi_popr4 = 8,
   Popi_popr8 = 9,
   Popref = 10,
   Popref_pop1 = 11,
   Popref_popi = 12,
   Popref_popi_popi = 13,
   Popref_popi_popi8 = 14,
   Popref_popi_popr4 = 15,
   Popref_popi_popr8 = 16,
   Popref_popi_popref = 17,
   Push0 = 18,
   Push1 = 19,
   Push1_push1 = 20,
   Pushi = 21,
   Pushi8 = 22,
   Pushr4 = 23,
   Pushr8 = 24,
   Pushref = 25,
   Varpop = 26,
   Varpush = 27
}

Hierarchy

System.ObjectSystem.ValueTypeSystem.Enum(System.IComparable, System.IFormattable, System.IConvertible)StackBehaviour

Returned By

OpCode.{StackBehaviourPop, StackBehaviourPush}

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required