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.

public:
 property bool ConvertValueInInvariantCulture { bool get(); void set(bool value); };
public bool ConvertValueInInvariantCulture { get; set; }
member this.ConvertValueInInvariantCulture : bool with get, set
Public Property ConvertValueInInvariantCulture As Boolean

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