private void ComputeHeader()
{
int num = 0;
Collection <Instruction> instructions = body.instructions;
Instruction[] items = instructions.items;
int size = instructions.size;
int num2 = 0;
int max_stack_size = 0;
Dictionary <Instruction, int> dictionary = null;
if (body.HasExceptionHandlers)
{
ComputeExceptionHandlerStackSize(ref dictionary);
}
for (int i = 0; i < size; i++)
{
Instruction instruction = items[i];
instruction.offset = num;
num += instruction.GetSize();
ComputeStackSize(instruction, ref dictionary, ref num2, ref max_stack_size);
}
body.code_size = num;
body.max_stack_size = max_stack_size;
}