Olvasás angol nyelven Szerkesztés

Megosztás a következőn keresztül:


RangeAttribute.ConvertValueInInvariantCulture Property

Definition

Gets or sets a value that determines whether any conversions of the value being validated to OperandType as set by the type parameter of the RangeAttribute(Type, String, String) constructor use the invariant culture or the current culture.

C#
public bool ConvertValueInInvariantCulture { get; set; }

Property Value

true to use the invariant culture for any conversions; false to use the culture that is current at the time of the validation.

Remarks

This property has no effect on the constructors with Int32 or Double parameters, which always use the invariant culture for any conversions of the validated value.

Applies to

Termék Verziók
.NET Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.0 (package-provided), 2.1 (package-provided)