Is this doing what it's supposed to be doing? Trying this locally, .Then(() => ...) binds to ConditionalBuilder.Then(Expression), notCodeGenerator.Then(ConditionalBuilder, Action). This also makes the API a bit unwieldy in general, since I have to write code with casts like this:
If(...)
.Then((Action)(() =>
{
// ...
}))
.End()
Not sure if I'm misunderstanding something or if this is unintended. 🤔
The docs have this example:
Is this doing what it's supposed to be doing? Trying this locally,
.Then(() => ...)
binds toConditionalBuilder.Then(Expression)
, notCodeGenerator.Then(ConditionalBuilder, Action)
. This also makes the API a bit unwieldy in general, since I have to write code with casts like this:Not sure if I'm misunderstanding something or if this is unintended. 🤔