in 2021.3/CodeAnalysis/Arithmetics.cs [52:63]
public void NewAttributes([NonNegativeValue]int amount, [ValueRange(1, 5)]int rating)
{
if (amount < 0)
{
// ...
}
if (rating > 10)
{
// ...
}
}