4 writes to Maximum
System.ComponentModel.Annotations (4)
System\ComponentModel\DataAnnotations\RangeAttribute.cs (4)
25Maximum = maximum; 39Maximum = maximum; 60Maximum = maximum; 121Maximum = maximum;
14 references to Maximum
Microsoft.AspNetCore.Mvc.Core.Test (4)
ModelBinding\Metadata\ModelAttributesTest.cs (4)
43Assert.Equal(10, (int)rangeAttributes[0].Maximum); 46Assert.Equal(100, (int)rangeAttributes[1].Maximum); 52Assert.Equal(10, (int)rangeAttributes[0].Maximum); 55Assert.Equal(100, (int)rangeAttributes[1].Maximum);
Microsoft.AspNetCore.Mvc.DataAnnotations (2)
RangeAttributeAdapter.cs (2)
26_max = Convert.ToString(Attribute.Maximum, CultureInfo.InvariantCulture)!; 49Attribute.Maximum);
Microsoft.AspNetCore.OpenApi (2)
Extensions\JsonNodeSchemaExtensions.cs (2)
96var targetCulture = rangeAttribute.ParseLimitsInInvariantCulture || rangeAttribute.Minimum is double || rangeAttribute.Maximum is int 101var 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 162var max = (IComparable)Maximum; 179return string.Format(CultureInfo.CurrentCulture, ErrorMessageString, name, Minimum, Maximum); 192object maximum = Maximum;