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