Emit IL Like C# Method IL But Get System.InvalidProgramException : Common Language Runtime detected an invalid program. Example : public static int BoolToInt(this bool input) { return input ? 1 : 0; } IL Code Is : ExtensionDataGetter.BoolToInt: IL_0000: nop IL_0001: ldarg.0 IL_0002: brtrue.s IL_0007 IL_0004: ldc.i4.0 IL_0005: br.s IL_0008 [...] read more
I'm starting learning C# and came up with this exception: System.InvalidProgramException HResult=0x8013153A Message=JIT Compiler encountered an internal limitation. Source=<Cannot evaluate the exception source> StackTrace: <Cannot evaluate the exception stack trace> This exception happens when I try to get data from database using the stored procedure with a DateTime parameter passed [...] read more