Perhaps this will help:
Action x = new Action(() => { var xx = "i am a string"; }); Action x1 = new Action(() => { }); MethodBody mb = x.Method.GetMethodBody(); MethodBody mb1 = x1.Method.GetMethodBody(); byte[] b = mb.GetILAsByteArray(); byte[] b1 = mb1.GetILAsByteArray();
b1 (empty method body) has only 2 bytes, values ββ0 and 42 mean nop and return , I think.
source share