Ad
Code
Diff
  • public class ReturnOneHundred
    {
      public static int ReturnHundred()
      {
        var t = typeof(ReturnOneHundred);
    		var m = t.GetMethod(nameof(ReturnHundred));
    		var mb = m.GetMethodBody();
    		var il = mb.GetILAsByteArray();
    		return il.Length * 2;
      }
    }
    • function returnhundred() {
    • return 10 ** 2;
    • public class ReturnOneHundred
    • {
    • public static int ReturnHundred()
    • {
    • var t = typeof(ReturnOneHundred);
    • var m = t.GetMethod(nameof(ReturnHundred));
    • var mb = m.GetMethodBody();
    • var il = mb.GetILAsByteArray();
    • return il.Length * 2;
    • }
    • }