Mono.Cecil.Fluent.FluentEmitter.Else C# (CSharp) Method

Else() public method

public Else ( ) : FluentEmitter
return FluentEmitter
		public FluentEmitter Else()
		{
			if(IfBlocks.Count == 0 || IfBlocks.Peek().OpCode == OpCodes.Br)
				throw new Exception("no if blfor else");
			Nop();
			var jumpstart = LastEmittedInstruction;
			EndIf();
			var block = new IfBlock() { StartInstruction = jumpstart, OpCode = OpCodes.Br }; // it jumps if value top on stack is true
			IfBlocks.Push(block);
			return this;
		}