I have the following line of code in my C# application:
ArgumentHelpers.ThrowIfNullOrWhitespace(() => args[0]);
JustDecompile shows the following decompilation:
ArgumentHelpers.ThrowIfNullOrWhitespace(
new
Expression<Func<
string
>>[] { Expression.Lambda<Func<
string
>>(Expression.ArrayIndex(Expression.Field(Expression.Constant(variable,
typeof
(Program.<>c__DisplayClass0_0)), FieldInfo.GetFieldFromHandle(
typeof
(Program.<>c__DisplayClass0_0).GetField(
"args"
).FieldHandle)), Expression.Constant(0,
typeof
(
int
))),
new
ParameterExpression[0]) });
ILSpy shows the following decompilation:
ArgumentHelpers.ThrowIfNullOrWhitespace(
new
Expression<Func<
string
>>[]<br>{<br> () => args[0]<br>});
It would be nice if JustDecompile generated the more concise syntax.