Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is LINQPad's IL code the optimized version?

Tags:

c#

linqpad

LINQPad has a tab near the results to show the IL of the C# statements you're running. I'm wondering if this is the optimized "Release" version of the code vs. the unoptimized "Debug" build of the code.

Perhaps there is a simple way to check by writing a small code snippet or something?

like image 541
Joe Phillips Avatar asked Apr 30 '18 21:04

Joe Phillips


1 Answers

This is controlled by preferences ("Edit" → "Preferences"), so it's up to you :)

enter image description here

In addition, the preference can be toggled with the keyboard shortcut Shift + Alt + o, or by clicking the "/o-" or "/o+" option in the bottom right of the UI.

enter image description here

like image 117
RB. Avatar answered Nov 05 '22 21:11

RB.