Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQUEST] SerializeWhen comparer operator #177

Closed
sn4k3 opened this issue Dec 3, 2021 · 1 comment
Closed

[FEATURE REQUEST] SerializeWhen comparer operator #177

sn4k3 opened this issue Dec 3, 2021 · 1 comment
Assignees

Comments

@sn4k3
Copy link

sn4k3 commented Dec 3, 2021

Would be usefull to have operators on SerializeWhen or a new SerializeWhenCompare attribute

So, for example, i can have: [SerializeWhenCompare (nameof(Version), Enum.GreaterThan, 2)] which will be serialized when version is > than 2

Operators:

Enum.EqualTo
Enum.DifferentThan
Enum.LessThan
Enum.LessEqualThan
Enum.GreaterThan
Enum.GreaterEqualThan
...
@jefffhaynes jefffhaynes self-assigned this Dec 4, 2021
@jefffhaynes
Copy link
Owner

Good idea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants