I am using AgileMapper with this code:
source.Map().OnTo(target, (options) =>
options.IgnoreSources((options) =>
options.If((value) => value is null)
)
);
However, the compiler is complaining:
An expression tree may not contain pattern-matching 'is' expression`
It works if I use value == null, but I want to understand why is not working?