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

[Question]: I have a integer array. I want to specify maximum and minimum for integer stored in the array. #3120

Open
c6-dark opened this issue Oct 28, 2024 · 0 comments
Labels

Comments

@c6-dark
Copy link

c6-dark commented Oct 28, 2024

What are you wanting to achieve?

I have an integer public int[] array {get; set;}.
I have used Maximum and Minimum length to specify a range for the array. I want to specify the same for the integer stored in the array

What code or approach do you have so far?

[Minimum(0), Maximum(100)]
public int[] array {get; set;}

Additional context

No response

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

No branches or pull requests

1 participant