4 writes to Maximum
System.ComponentModel.Annotations (4)
System\ComponentModel\DataAnnotations\RangeAttribute.cs (4)
25
Maximum
= maximum;
39
Maximum
= maximum;
60
Maximum
= maximum;
121
Maximum
= maximum;
14 references to Maximum
Microsoft.AspNetCore.Mvc.Core.Test (4)
ModelBinding\Metadata\ModelAttributesTest.cs (4)
43
Assert.Equal(10, (int)rangeAttributes[0].
Maximum
);
46
Assert.Equal(100, (int)rangeAttributes[1].
Maximum
);
52
Assert.Equal(10, (int)rangeAttributes[0].
Maximum
);
55
Assert.Equal(100, (int)rangeAttributes[1].
Maximum
);
Microsoft.AspNetCore.Mvc.DataAnnotations (2)
RangeAttributeAdapter.cs (2)
26
_max = Convert.ToString(Attribute.
Maximum
, CultureInfo.InvariantCulture)!;
49
Attribute.
Maximum
);
Microsoft.AspNetCore.OpenApi (2)
Extensions\JsonNodeSchemaExtensions.cs (2)
96
var targetCulture = rangeAttribute.ParseLimitsInInvariantCulture || rangeAttribute.Minimum is double || rangeAttribute.
Maximum
is int
101
var maxString = rangeAttribute.
Maximum
.ToString();
System.ComponentModel.Annotations (6)
System\ComponentModel\DataAnnotations\RangeAttribute.cs (6)
80
/// Specifies whether validation should fail for values that are equal to <see cref="
Maximum
"/>.
85
/// Gets the type of the <see cref="Minimum" /> and <see cref="
Maximum
" /> values (e.g. Int32, Double, or some custom
92
/// Determines whether string values for <see cref="Minimum"/> and <see cref="
Maximum
"/> are parsed in the invariant
162
var max = (IComparable)
Maximum
;
179
return string.Format(CultureInfo.CurrentCulture, ErrorMessageString, name, Minimum,
Maximum
);
192
object maximum =
Maximum
;