Skip to content

Are there any restrictions on the conditions for Match()? #339

Answered by snikolayev
trobinpl asked this question in Q&A
Discussion options

You must be logged in to vote

@trobinpl thanks for that repro case - you found a bug! See #340
While I'm fixing it, you can work around, by wrapping those properties into methods and use those in the rules.

public class NotificationSettings
{
    public bool Slack { get; set; }
    public bool InApp { get; set; }
    public bool HasSlack() => Slack;
    public bool HasApp() => InApp;
}

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@snikolayev
Comment options

@trobinpl
Comment options

@snikolayev
Comment options

Answer selected by trobinpl
@trobinpl
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants