9 public object Minimum {
get;
private set; }
11 public object Maximum {
get;
private set; }
23 : base(() =>
System.
SR.RangeAttribute_ValidationError)
31 : base(() =>
System.
SR.RangeAttribute_ValidationError)
38 [RequiresUnreferencedCode(
"Generic TypeConverters may require the generic types to be annotated. For example, NullableConverter requires the underlying type to be DynamicallyAccessedMembers All.")]
40 : base(() =>
System.
SR.RangeAttribute_ValidationError)
64 if (
obj ==
null ||
obj.Length != 0)
109 if (minimum ==
null || maximum ==
null)
113 Type type2 = minimum.GetType();
114 if (type2 == typeof(
int))
119 if (type2 == typeof(
double))
141 [UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2026:RequiresUnreferencedCode", Justification =
"The ctor that allows this code to be called is marked with RequiresUnreferencedCode.")]
Func< object, object?>? Conversion
override bool IsValid(object? value)
bool ConvertValueInInvariantCulture
override string FormatErrorMessage(string name)
RangeAttribute(int minimum, int maximum)
TypeConverter GetOperandTypeConverter()
RangeAttribute([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type, string minimum, string maximum)
void Initialize(IComparable minimum, IComparable maximum, Func< object, object > conversion)
bool ParseLimitsInInvariantCulture
RangeAttribute(double minimum, double maximum)
static TypeConverter GetConverter(object component)
static int ToInt32(object? value)
static double ToDouble(object? value)
static CultureInfo CurrentCulture
static CultureInfo InvariantCulture
static string RangeAttribute_MinGreaterThanMax
static string Format(string resourceFormat, object p1)
static string RangeAttribute_Must_Set_Min_And_Max
static string RangeAttribute_ArbitraryTypeNotIComparable
static string RangeAttribute_Must_Set_Operand_Type
virtual bool IsAssignableFrom([NotNullWhen(true)] Type? c)
int CompareTo(object? obj)
DynamicallyAccessedMemberTypes