Stumbled on this odd behavior and eventually figured it out, no thanks to an extremely opaque error message: Error E1001: [optiPoint]OptipointLearningModule.compareMCV.compareMCVMainMethod() IL_00DC : critical internal error Error CILC0001 Error during generating native code.
After a bit of trial and error it became clear that you can’t use a C# DateTime type as an argument in a method for the PLC.
Further complicating the search was the fact that the code compiles fine if the method with the DateTime argument is not used by some other method.I checked the “Known Issues and Constraints” section in the eCLR 3.2 Programming Reference but found nothing on this. Might be worth adding?