Mono.Cecil.Fluent.MethodBodyExtensions.CopyBranchStackSize C# (CSharp) Method

CopyBranchStackSize() private static method

private static CopyBranchStackSize ( int>.Dictionary &stackSizes, Instruction target, int stackSize ) : void
stackSizes int>.Dictionary
target Mono.Cecil.Cil.Instruction
stackSize int
return void
		private static void CopyBranchStackSize(ref Dictionary<Instruction, int> stackSizes, Instruction target, int stackSize)
		{
			if (stackSizes == null)
				stackSizes = new Dictionary<Instruction, int>();
            var branchStackSize = stackSize;
			int computedSize;
			if (stackSizes.TryGetValue(target, out computedSize))
				branchStackSize = System.Math.Max(branchStackSize, computedSize);
			stackSizes[target] = branchStackSize;
		}

Same methods

MethodBodyExtensions::CopyBranchStackSize ( Instruction instruction, int>.Dictionary &stackSizes, int stackSize ) : void