Table of Contents

Class RangeAttribute

Namespace
CSV4Unity.Validation
Assembly
CSV4Unity.Docs.dll

数値が指定範囲内にあることを要求します。

[AttributeUsage(AttributeTargets.Field, AllowMultiple = true)]
public class RangeAttribute : CsvValidationAttribute
Inheritance
object
Attribute
RangeAttribute
Inherited Members

Remarks

最小値と最大値を含む範囲として、検証時の形式プロバイダーを使ってdoubleへ変換します。

Constructors

RangeAttribute(double, double)

数値の範囲制約を設定します。

Properties

Max

許可する最大値を取得します。

Min

許可する最小値を取得します。